ezLogmeanNorm | R Documentation |
Columns of the matrix will be scaled to an overall logarithmic mean or to a defined target.
ezLogmeanNorm(x, use = NULL, target = NULL, presentFlag = NULL)
ezLogmeanScalingFactor(x, use = NULL, target = NULL, presentFlag = NULL)
x |
the matrix to scale. |
use |
a logical vector defining which rows to use. |
target |
a value or vector defining the means by which columns should be scaled. The default will use the overall logarithmic mean of the matrix for each column. |
presentFlag |
a binary matrix with the same size as |
Returns a matrix with columns normalized to a logarithmic mean/means.
ezLogmeanScalingFactor
: Calculates the scaling factor for the main function.
Rehrauer, Hubert
Schmid, Peter
m1 = matrix(1:20,5)
m2 = ezLogmeanNorm(m1)
m3 = ezLogmeanNorm(m1,target=10)
m4 = ezLogmeanNorm(m1,use=c(TRUE,FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.