Learn R Programming

taxa (version 0.3.4)

get_dataset: 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

Run this code
# 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"))

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab