get_numeric_cols: Get numeric columns from taxmap table

View source: R/calculations--internal.R

get_numeric_colsR Documentation

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, data, cols = NULL)

Arguments

obj

A taxmap object

data

The name of a table in obj.

cols

The names/indexes of columns in data 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.


metacoder documentation built on April 4, 2023, 9:08 a.m.