Skip to contents

Scale a variable by subtracting the mean and dividing by the standard deviation

Usage

scale_this(x)

Arguments

x

a numeric vector

Value

a numeric vector with the same length as x

Examples

scale_this(1:10)
#>  [1] -1.4863011 -1.1560120 -0.8257228 -0.4954337 -0.1651446  0.1651446
#>  [7]  0.4954337  0.8257228  1.1560120  1.4863011