Skip to contents

Scale a numeric vector

Usage

scale_vec(x, ...)

Arguments

x

numeric vector to scale

...

additional arguments to be passed to scale

Value

scaled vector

Examples

scale_vec(1:20)
#>  [1] -1.60579308 -1.43676223 -1.26773138 -1.09870053 -0.92966968 -0.76063883
#>  [7] -0.59160798 -0.42257713 -0.25354628 -0.08451543  0.08451543  0.25354628
#> [13]  0.42257713  0.59160798  0.76063883  0.92966968  1.09870053  1.26773138
#> [19]  1.43676223  1.60579308