medianCtr: Median center rows

View source: R/medianCtr.R

medianCtrR Documentation

Median center rows

Description

Takes a matrix and centers the rows by their median.

Usage

medianCtr(x)

Arguments

x

a matrix

Details

The data matrix should have genes as rows and samples as columns. After centering, each row should have median approximately 0.

Value

A matrix with median centered rows.

Author(s)

Samuel Leung

Examples

x <- matrix(rnorm(200), nrow = 10)
medianCtr(x)

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.