isPhylo | R Documentation |
This function returns TRUE if the passed object is of class phylo; Otherwise, FALSE
isPhylo(test_object, check_rooted)
test_object |
R object to check |
check_rooted |
OPTIONAL: If TRUE, also check if tree is rooted. [Default: FALSE, don't check rootedness] |
TRUE if phylo, otherwise FALSE
isPhylo(tree) # Check if 'tree' is a phylo object
isPhylo(tree,check_rooted = TRUE) # Check if 'tree' is a rooted phylo object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.