Transforms each column of a numeric matrix by applying a logarithmic
transformation adjusted by a quantile and a safety margin.
Usage
logTransformData(data, quant_val = 0.001, safety_margin = 100)
Arguments
- data
A numeric matrix whose columns are to be transformed.
- quant_val
A quantile value used for the transformation adjustment.
- safety_margin
A numeric value added for safety to ensure positive logarithm domain.
Value
A numeric matrix with each column transformed.
Examples
data <- matrix(c(1, 2, 3, 4, 5, 6), nrow=2)
logTransformData(data)
#> [,1] [,2] [,3]
#> [1,] 2.000000 2.000000 2.000000
#> [2,] 2.004321 2.004321 2.004321