medianNorm: Utility to median normalize a matrix by columns

Description Usage Arguments Value Examples

View source: R/medianNorm.R

Description

Divide appropriately to make all column medians equal to the max median

Usage

1

Arguments

mat

Data matrix to normalize; matrix assumed positive

Value

Matrix of same dimensions.

Examples

1
2
3
4
5
6
7
mat = 100+matrix(rnorm(1000), ncol=10)
mat[,10] = mat[,10] + 2
layout(matrix(1:2, nrow=1))
boxplot(mat)
boxplot(medianNorm(mat))

# note: issues when medians close to 0.

Bioconductor-mirror/SwathXtend documentation built on July 19, 2017, 8:41 a.m.