data.error | R Documentation |
Calculate standard deviation or standard errors from a numerical vector.
data.error(x, error.type = "stderr")
x |
a numerical vector |
error.type |
method used to calculate data error. Options include "sd" for standard deviation and "stderr" for standard error. |
data error
sd
set.seed(2000)
x=rnorm(1000,mean=0,sd=1)
##standard error
data.error(x,error.type = 'stderr')
##standard deviation
data.error(x,error.type = 'sd')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.