preprocess | R Documentation |
With this function you can center and scale your data.
preprocess( data, center = TRUE, scale = c("none", "uv", "pareto"), simple = TRUE )
data |
matrix to preprocess |
center |
center the data (default is TRUE) |
scale |
which scaling to use |
simple |
only return the preprocessed matrix. If false also the original data will be returned as a list. Default is true. |
The centered and scaled matrix will be returned if simple is true. If simple is false also the center and scale vectors are returned.
Rico Derks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.