Learn R Programming

RSSL (version 0.9.3)

scaleMatrix: Matrix centering and scaling

Description

This function returns an object with a predict method to center and scale new data. Inspired by stdize from the PLS package

Usage

scaleMatrix(x, center = TRUE, scale = TRUE)

Arguments

x

matrix to be standardized

center

TRUE if x should be centered

scale

logical; TRUE of x should be scaled by the standard deviation