Learn R Programming

metacoder (version 0.3.8)

get_taxmap_cols: Get a column subset

Description

Convert logical, names, or indexes to column names and check that they exist.

Usage

get_taxmap_cols(obj, data, cols = NULL)

Arguments

obj

A taxmap object

data

The name of a table in obj that contains counts.

cols

The columns in the data set to use. Takes one of the following inputs:

TRUE/FALSE:

All non-target columns will be preserved or not.

Vector of TRUE/FALSE of length equal to the number of columns:

Preserve the columns corresponding to TRUE values.

Character vector:

The names of columns to preserve

Numeric vector:

The indexes of columns to preserve

See Also

Other option parsers: get_taxmap_data(), get_taxmap_other_cols(), get_taxmap_table(), verify_taxmap()