View source: R/coralPreprocess.R
coralPreprocess | R Documentation |
Splits typical Hmsc data into common and rare partitions for CORAL analysis
coralPreprocess(
Y,
spNames.common,
TrData = NULL,
phyloTree = NULL,
Taxa = NULL,
TaxaFormula = NULL
)
Y |
community matrix of both common and rare species |
spNames.common |
vector of species that are considered common in CORAL analysis |
TrData |
trait matrix for both common and rare species |
phyloTree |
phylogeny tree covering both common and rare species |
Taxa |
dataframe with |
TaxaFormula |
formula for calculating phylogeny from taxonomy, as in |
This functions implies that all column names of Y
that are not listed in spNames.common
argument
are considered rare species in the context of CORAL analysis.
Exactly one argument of phyloTree and Taxa must be specified.
A named list containing Y.xyz
and TrData.xyz
parts for common and rare partitions,
phylogeny tree phyloTree.common
for common part and
phylogeny similarity matrix C.common.rare
between common and rare species
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.