ezMedianNorm | R Documentation |
Columns of the matrix will be scaled to an overall median or to a defined target.
ezMedianNorm(x, use = NULL, target = NULL, presentFlag = NULL)
ezMedianScalingFactor(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 median(s) by which columns should be scaled. The default will use the overall median of the matrix for each column. |
presentFlag |
a binary matrix with the same size as |
Returns a matrix with columns normalized to a median/medians.
ezMedianScalingFactor
: Calculates the scaling factor for the main function.
Rehrauer, Hubert
Schmid, Peter
m1 = matrix(1:20, 5)
m2 = ezMedianNorm(m1)
m3 = ezMedianNorm(m1, target=10)
m4 = ezMedianNorm(m1, use=c(TRUE, FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.