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