Return the root taxa for a taxmap
object. Can also be used to get the roots of
a subset of taxa.
roots(obj, subset = NULL, index = FALSE)
(taxmap
) The taxmap
object containing taxon information to be
queried.
(character
) Taxon IDs for which supertaxa will be returned. Default: All
taxon in obj
will be used.
(logical
) If TRUE
, return the indexes of roots in
taxon_data
instead of taxon_ids
character