transform_coda: Transform compositional data

Description Usage Arguments

View source: R/transform_coda.R

Description

Transform compositional data in a given data frame and replace it.

Usage

1
2
transform_coda(data, coda_variables, method = c("CLR"), alr_base = 1,
  raw_filename = NULL, trans_filename = NULL, final_filename = NULL)

Arguments

data

Data frame containing compositional data.

coda_variables

Numeric/Character, vector containing the names/indexes of the compositional variables.

method

Character, the log-ratio transformation to be applied. "ALR" -> additive log-ratio, "CLR" -> centered log-ratio, "ILR" -> isometric log-ratio. Additionally, accepts "log" for applying logarithmic transformation and "std" for standardization (scaled and centred).

alr_base

Character/Numeric, the name/index of the variable to be used as divisor in additional log-ratio transformation. in additive log-ratio transformation.

raw_filename, trans_filename, final_filename

Character, file names for saving the raw (complete), tranformed (only coda), and final (complete) data sets.


Andros-Spica/cerUB documentation built on June 9, 2020, 9:22 p.m.