taxa (version 0.3.3)

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

Description

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

obj$get_data_frame(name = NULL, ...)
get_data_frame(obj, name = NULL, ...)

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.

Value

data.frame

Details

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

Examples

Run this code
# NOT RUN {
# Get specific values
get_data_frame(ex_taxonomy, c("taxon_names", "taxon_indexes", "is_stem"))

# Get all values
get_data_frame(ex_taxonomy)

# }

Run the code above in your browser using DataCamp Workspace