parent | R Documentation |
Get id of the parent of some taxa
parent(taxon_ids, taxo)
parents(taxon_ids, taxo)
taxon_ids |
internal, numeric ids of the taxa. |
taxo |
a taxonomy data.frame, typically from |
parent
and parents
are just synonyms. The function works per taxon but is vectorised over taxon_ids
.
A vector of taxon ids, as long as the input, containing the id of the parent of each element in the input.
Other taxonomy-related functions:
ancestors()
,
as.taxo()
,
children()
,
descendants()
,
extract_taxo()
,
is_leaf()
,
lineage()
,
taxo_id()
,
taxo_name()
print(as.Node(taxo), "id")
parent(3, taxo)
parent(1:4, taxo)
parent(c(5, NA), taxo)
## Not run: parent(12, taxo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.