metacoder (version 0.1.3)

roots: Get root taxa

Description

Return the root taxa for a taxmap object. Can also be used to get the roots of a subset of taxa.

Usage

roots(obj, subset = NULL, index = FALSE)

Arguments

obj

(taxmap) The taxmap object containing taxon information to be queried.

subset

(character) Taxon IDs for which supertaxa will be returned. Default: All taxon in obj will be used.

index

(logical) If TRUE, return the indexes of roots in taxon_data instead of taxon_ids

Value

character

See Also

Other taxmap taxonomy functions: obs, subtaxa, supertaxa