merge_TATBTC {BioIndex}R Documentation

Merge Ta-TB and TA-TC tables

Description

Merge Ta-TB and TA-TC tables

Usage

merge_TATBTC(
  ta,
  tb,
  tc,
  species,
  country = "all",
  strata = BioIndex::strata_scheme,
  wd = NA,
  save = TRUE,
  verbose = TRUE
)

Arguments

ta

MEDITS or MEDITS-like TA table

tb

MEDITS or MEDITS-like TB table

tc

MEDITS or MEDITS-like TC table

species

species rubin code (MEDITS format, e.g. "MERLMER")

country

country code as reported in MEDITS format. "all" code to perform the analysis on all the countries of the same GSA

strata

data frame of the stratification scheme adopet by the MEDITS survey

wd

working directory

save

boolean. If TRUE the plot is saved in the user defined working directory (wd)

verbose

boolean. If TRUE a message is printed

Value

A list of two data frames is returned. The first element contains the TA-TB merged tables, while the second element contains the TA-TC merged tables

Examples

m <- merge_TATBTC(ta=TA, tb=TB, tc=TC, species="MERLMER", country="all", wd=tempdir(), verbose=TRUE)
mTATB <- m[[1]]
mTATC <- m[[2]]


[Package BioIndex version 0.5.02 Index]