From a vector of numbers, it subtracts the mean to each element.
Usage
mean_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)
Value
a numeric vector with the scaled values.