View source: R/calculations--internal.R
do_calc_on_num_cols | R Documentation |
For a given table in a taxmap object, run some function to produce new columns. This function handles all of the option parsing and formatting of the result.
do_calc_on_num_cols(
obj,
data,
func,
cols = NULL,
groups = NULL,
other_cols = FALSE,
out_names = NULL
)
obj |
A |
data |
The name of a table in |
func |
The function to apply. Should have the following form:
|
cols |
The columns in
|
groups |
Group multiple columns per treatment/group. This should be a
vector of group IDs (e.g. character, integer) the same length as
|
other_cols |
Preserve in the output non-target columns present in the input data. New columns will always be on the end. The "taxon_id" column will be preserved in the front. Takes one of the following inputs:
|
out_names |
The names of count columns in the output. Must be the same
length and order as |
A tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.