stdev computes the standard deviation of the values in x.
If na.rm is TRUE then missing values are removed before computation
proceeds. If x is a matrix or a data frame,
a vector of the standard deviation of the columns is returned.
If unbiased is TRUE then the sample standard deviation is returned,
else the population standard deviation is returned.
Usage
stdev(x, na.rm, unbiased)
Arguments
x
a numeric vector, matrix or data frame
na.rm
logical value indicating if missing values should be removed.
unbiased
whether to return biased or unbiased standard deviation