compTransform.Rd
Transformation of compositional data
compTransform(X, eps = 1e-04, method = "comp", scale = F)
X | a matrix to transform. |
---|---|
eps | when elements of X smaller than eps, will be eps to avoid invalid value in log transformation. |
method | The method of transformation. If method = "asin" will perform arcsine transformation. If method = "clr" will perform central log transformation. If method = "comp" will use composition data. |
scale | a logical variable to determine whether scale the transformed data. |
A matrix of transformed data.