Transformation of compositional data

compTransform(X, eps = 1e-04, method = "comp", scale = F)

Arguments

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.

Value

A matrix of transformed data.