Description Usage Arguments Value Examples
an improvement of the base R scale function. Unlike R's standard scale function, this allows for factor columns or character columns to be present in the data, and will simply leave those untouched without throwing an error. This function takes a center function and scale function, allowing the user to customize the type of scaling. However, each must be a univariate function. For example, 'colMeans' will not work, but 'mean' will.
1 |
data |
a data frame or vector |
center |
a function for estimating the center of each column. defaults to mean. |
scale |
a function for estimating the scale of each column. defaults to sd. |
A data frame
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.