Sd | R Documentation |
‘Sd’ returns the standard deviation of all the values present in its arguments, omitting NA values. Useful to use inside apply functions to avoid errors due to NA's.
Sd(x)
x |
A vector containing numeric values |
A numeric scalar, the standard deviation of the inputs
x <- matrix(c((1:11)^2,NA), ncol=4) apply(x,1,Sd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.