exprso (version 0.5.1)

modNormalize: Normalize Data

Description

modNormalize normalizes feature data.

Usage

modNormalize(object, MARGIN = c(1, 2))

Arguments

object

An ExprsArray object to undergo pre-processing.

MARGIN

A numeric vector. The margin by which to normalize. Provide MARGIN = 1 to normalize the feature vector. Provide MARGIN = 2 to normalize the subject vector. Provide MARGIN = c(1, 2) to normalize by the subject vector and then by the feature vector.

Value

A pre-processed ExprsArray object.

Details

This method normalizes subject and/or feature vectors according to the formula y = (x - mean(x)) / sd(x).