
Perform a centered log ratio transformation on the readcounts.
Source:R/handlers.R
add_clr_abundance.Rdadd_clr_abundance() calculates the log ration transformed values for each taxon in each sample and adds these data in a new table, clr_counts. Alternatively, using 'overwrite', the clr transformed data can replace the 'counts' column in the count table.
Arguments
- ta
A tidytacos object.
- overwrite
Whether or not the counts table is to be overwritten with the transformed counts.
- pseudocount
A pseudocount to be added to the counts before transformation. If false or zero will perform robust CLR.
- ...
Arguments passed on to
vegan::decostandxCommunity data, a matrix-like object. For
decobackstandstandardized data.methodStandardization method. See Details for available options.
MARGINMargin, if default is not acceptable.
1= rows, and2= columns ofx.range.globalMatrix from which the range is found in
method = "range". This allows using same ranges across subsets of data. The dimensions ofMARGINmust match withx.logbaseThe logarithm base used in
method = "log".na.rmIgnore missing values in row or column standardizations. The
NAvalues remain asNA, but they are ignored in standardization of other values.