normalize: Normalize rows or columns by its standard deviation.

Description Usage Arguments Value Author(s) Examples

View source: R/calc.r

Description

Normalize rows or columns by its standard deviation.

Usage

1

Arguments

x

matrix

normalize

A numeric value indicating along what direction (rows, columns) to normalize by standard deviations. 0 = none, 1= rows, 2 = columns (default is 0).

...

Not evaluated.

Value

Not yet definde TODO!

Author(s)

Mark Heckmann

Examples

1
2
3
4
5
6
7
## Not run: 

x <- matrix(sample(1:5, 20, rep=T), 4)
normalize(x, 1)						      # normalizing rows
normalize(x, 2)						      # normalizing columns

## End(Not run)

OpenRepGrid documentation built on May 31, 2017, 2:32 a.m.