standardize: Standardizes a Numeric Matrix by Columns.

View source: R/standardize.R

standardizeR Documentation

Standardizes a Numeric Matrix by Columns.

Description

Sometimes it is desirable to have all variables to have mean 0 and standard deviation 1. This function rescales the values in such a way.

If the argument is not a matrix, the function tries to convert the object into a matrix. For example, it works smoothly for xts objects.

Usage

standardize(data)

Arguments

data

matrix, observations are put in rows, and variables are grouped by columns

Value

matrix

See Also

normalize

Examples

standardize(crudeoil)

fDMA documentation built on July 26, 2023, 6:09 p.m.

Related to standardize in fDMA...