
Perform a centered log ratio transformation on the readcounts.
Source:R/handlers.R
add_clr_abundance.Rd
add_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::decostand
x
Community data, a matrix-like object. For
decobackstand
standardized data.method
Standardization method. See Details for available options.
MARGIN
Margin, if default is not acceptable.
1
= rows, and2
= columns ofx
.range.global
Matrix from which the range is found in
method = "range"
. This allows using same ranges across subsets of data. The dimensions ofMARGIN
must match withx
.logbase
The logarithm base used in
method = "log"
.na.rm
Ignore missing values in row or column standardizations. The
NA
values remain asNA
, but they are ignored in standardization of other values.