Get a data set from a taxmap object and complain if it does not exist.

Arguments

obj

A taxmap object

data

Dataset name, index, or a logical vector that indicates which dataset in obj$data to add columns to.

Examples

if (FALSE) { # Get data set by name get_dataset(ex_taxmap, "info") # Get data set by indeex_taxmap get_dataset(ex_taxmap, 1) # Get data set by T/F vector get_dataset(ex_taxmap, startsWith(names(ex_taxmap$data), "i")) }