checkTips | R Documentation |
This function returns TRUE if all 'taxa' are present in 'tree' (or a multiPhylo of trees); FALSE otherwise. If multiPhylo, all comparisons are made on the common set of taxa.
checkTips(tree, taxa, check_mono, check_root)
tree |
Tree(s) to check. Options include:
|
taxa |
Taxon labels to check. Can be:
|
check_mono |
OPTIONAL: If TRUE, also query whether 'taxa' are monophyletic in tree(s) [Default: FALSE] |
check_root |
OPTIONAL: If TRUE, also query whether 'taxa' are monophyletic and make up one of the two root splits in tree(s) [Default: FALSE] |
TRUE if all 'taxa' in 'tree'; else, FALSE (barring other selected options)
# Check if all labels in 'myTaxa' are present in phylo object 'myTree'
myTaxa <- c('Species_1','Species_2','Species_3')
checkTips(myTree,myTaxa)
# Check if all labels in 'myTaxa' are present in all trees in multiPhylo object 'myTrees'
checkTips(myTrees,myTaxa)
# Check if clade 'myTaxa' are monophyletic in phylo object 'myTree'
checkTips(myTree,myTaxa,check_mono=TRUE)
# Check if clade 'myTaxa' are one of the two root splits in phylo object 'myTree'
checkTips(myTree,myTaxa,check_root=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.