metacoder (version 0.2.0)

get_numeric_cols: Get numeric columns from taxmap table

Description

If columns are specified by the user, parse them and check that they are numeric. If not, return all numeric columns.

Usage

get_numeric_cols(obj, dataset, cols = NULL)

Arguments

obj

A taxmap object

dataset

The name of a table in obj.

cols

The names/indexes of columns in dataset to use. By default, all numeric columns are used. Takes one of the following inputs:

TRUE/FALSE:

All/No columns will used.

Character vector:

The names of columns to use

Numeric vector:

The indexes of columns to use

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

Use the columns corresponding to TRUE values.