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, ...)
Value
`data.frame`
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.