From a vector of numbers, to each element it subtracts the mean and divide by the standard deviation.
Usage
auto_scale(x, na.rm = FALSE)
Arguments
- x
a numeric vector.
- na.rm
logical. Should missing value be stripped before the computation? (Same as for mean and sd)
Value
a numeric vector with the scaled values.