Learn R Programming

textir (version 1.4)

normalize: Normalize

Description

Normalize matrix columns.

Usage

normalize(x, m=NULL, s=NULL)

Arguments

x
A matrix.
m
Optional column shifts.
s
Optional column scalings.

Value

  • Under default, a matrix with mean-zero and variance-one columns. If shift and scale are specified, a matrix with columns shifted by -m and divided by s.

See Also

freq, corr, sdev, pls

Examples

Run this code
normalize( matrix(1:9, ncol=3) )

Run the code above in your browser using DataLab