sd.default {spectrolab} | R Documentation |
Default standard deviation
Description
sd
computes the standard deviation of the values in x. If na.rm is TRUE then missing values are removed before computation proceeds.
Usage
## Default S3 method:
sd(x, na.rm = FALSE)
Arguments
x |
a numeric vector or an R object which is coercible to one by as.double(x) |
na.rm |
logical. Should missing values be removed? |
Value
standard deviation of x
Examples
x = rnorm(n = 200, mean = 0, sd = 1)
sd(x)
[Package spectrolab version 0.0.19 Index]