scaleMatrix | R Documentation |
This function returns an object with a predict method to center and scale new data. Inspired by stdize from the PLS package
scaleMatrix(x, center = TRUE, scale = TRUE)
x |
matrix to be standardized |
center |
TRUE if x should be centered |
scale |
logical; TRUE of x should be scaled by the standard deviation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.