is_leaf | R Documentation |
Tests whether taxa are leaves in a taxonomic tree
is_leaf(taxon_ids, taxo)
taxon_ids |
internal, numeric ids of the taxa. |
taxo |
a taxonomy data.frame, typically from |
Other taxonomy-related functions:
ancestors()
,
as.taxo()
,
children()
,
descendants()
,
extract_taxo()
,
lineage()
,
parent()
,
taxo_id()
,
taxo_name()
print(as.Node(taxo), "id")
is_leaf(5, taxo)
is_leaf(6, taxo)
is_leaf(NA, taxo)
is_leaf(c(5,NA,6,NA), taxo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.