Is there a function that given a vector of numbers, returns another vector with the standard units corresponding to each value?
where standard unit: how many SDs a v
yes, scale():
scale()
x <- c(1,3,4,5,7) scale(x)