lineage | R Documentation |
Get the full lineage of a taxon
lineage(taxon_ids, taxo, rooted = FALSE)
taxon_ids |
internal, numeric ids of the taxa. |
taxo |
a taxonomy data.frame, typically from |
rooted |
when |
A vector of strings containing the lineage for each element of taxon_ids
.
Other taxonomy-related functions:
ancestors()
,
as.taxo()
,
children()
,
descendants()
,
extract_taxo()
,
is_leaf()
,
parent()
,
taxo_id()
,
taxo_name()
print(as.Node(taxo), "id")
lineage(6, taxo)
lineage(6, taxo, rooted=TRUE)
lineage(c(6, 7), taxo)
lineage(NA, taxo)
lineage(c(6, NA), taxo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.