Description Usage Arguments Author(s)
The built-in R function scale uses the sample standard deviation when its scale option is set to TRUE. This function uses the population standard deviation instead.
1 |
x |
A numeric vector, matrix, or data.frame |
center |
A logical indicating whether the scores in the columns in x should have their column means subtracted |
scale |
A logical indicating whether the scores in the columns in x should be divided by their column standard deviations |
Borrowed from Ryne Sherman on 2012/09/06, his function is named scale2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.