scaleMatrix: Matrix centering and scaling

View source: R/scaleMatrix.R

scaleMatrixR Documentation

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


RSSL documentation built on May 29, 2024, 2:38 a.m.