Description Usage Arguments Value Author(s) See Also Examples
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.
1 | stdev(x, na.rm, unbiased)
|
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 |
Standard deviation of x.
Knut M. Wittkowski kmw@rockefeller.edu
1 2 3 4 5 |
[1] 2.380476
[1] 1.904381
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.