children.Rd
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 |
A list of vectors of taxon ids, as long as the input, containing the ids of the children of each element in taxon_ids
.
The function works per taxon but is vectorised over taxon_ids
.
Other taxonomy-related functions:
ancestors()
,
as.taxo()
,
descendants()
,
extract_taxo()
,
is_leaf()
,
lineage()
,
parent()
,
taxo_id()
,
taxo_name()
#> levelName id #> 1 # NA #> 2 °--living 1 #> 3 ¦--fish 2 #> 4 ¦ °--egg 4 #> 5 °--mollusc 3 #> 6 ¦--snail 5 #> 7 ¦ °--egg 7 #> 8 °--squid 6children(3, taxo)#> [1] 5 6children(1:4, taxo)#> [[1]] #> [1] 2 3 #> #> [[2]] #> [1] 4 #> #> [[3]] #> [1] 5 6 #> #> [[4]] #> numeric(0) #>#> [[1]] #> [1] 7 #> #> [[2]] #> [1] NA #>if (FALSE) children(12, taxo)