Scaling a vector
scale_protti
is used to scale a numeric vector either between 0 and 1 or around a centered value using the standard deviation.
scale_protti(x, method)
x |
a numeric vector |
method |
the method to be used for scaling. "01" scales the vector between 0 and 1. "center" scales the vector equal to |
A scaled numeric vector.
scale_protti(c(1, 2, 1, 4, 6, 8), method = "01")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.