get_dataset: Get a data set from a taxmap object

View source: R/old_taxa--taxmap--s3.R

get_datasetR Documentation

Get a data set from a taxmap object

Description

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

## Not run: 
# 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"))


## End(Not run)


grunwaldlab/metacoder documentation built on Feb. 22, 2024, 3:47 a.m.