View source: R/reduceToCommonTaxa.R
reduceToCommonTaxa | R Documentation |
An epmGrid object may contain more taxa with morphological data than taxa with phylogenetic information, or vice versa. This function subsets all epmGrid components to the set of taxa shared across geographic, phenotypic and phylogenetic datasets. This might desirable to ensure that all diversity metrics are based on the same set of taxa.
reduceToCommonTaxa(x)
x |
object of class |
new epmGrid
object.
Pascal Title
tamiasEPM
# randomly drop a few species for demonstration
tamiasEPM <- addPhylo(tamiasEPM, ape::drop.tip(tamiasTree, sample(tamiasTree$tip.label, 5)))
tamiasEPM <- addTraits(tamiasEPM, tamiasTraits[-(3:5),])
new <- reduceToCommonTaxa(tamiasEPM)
tamiasEPM
new
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.