Description Usage Arguments Value Note Author(s) Examples
Calculates the standard deviation of a set of numeric values, making an appropriate adjustment if using population rather than sample data.
1 |
x |
A numeric vector. |
na.rm |
If |
sample |
If |
Numeric. Returns the value of the calculated standard deviation.
The sd
function supplied as part of the base R xstats
package assumes that the data are from a sample and offers no option to calculate the correct standard deviation for population data. The std.dev
function offers this additional facility.
Paul Williamson
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.