get_data_frame: Get data in a taxonomy or taxmap object by name

Description Arguments Details Value Examples

View source: R/taxonomy--s3.R

Description

Given a vector of names, return a table of the indicated data contained in a taxonomy() or taxmap() object.

1
2

Arguments

obj

A taxonomy() or taxmap() object

name

(character) Names of data to return. If not supplied, return all data listed in all_names().

...

Passed to all_names(). Used to filter what kind of data is returned (e.g. columns in tables or function output?) if name is not supplied or what kinds are allowed if name is supplied.

Details

Note: This function will not work with variables in datasets in taxmap() objects unless their rows correspond 1:1 with all taxa.

Value

data.frame

Examples

1
2
3
4
5
# Get specific values
get_data_frame(ex_taxonomy, c("taxon_names", "taxon_indexes", "is_stem"))

# Get all values
get_data_frame(ex_taxonomy)

ropensci/taxa documentation built on Nov. 1, 2020, 2:29 p.m.