powered by
x
scale
standardise(x, scale = TRUE)
TRUE
x <- matrix(rnorm(100*10), nrow = 100, ncol = 10) x <- standardise(x) standard.deviations <- apply(x,2,sd) print(standard.deviations)
Run the code above in your browser using DataLab