meanSd | R Documentation |
Arithmetic mean ± sd
meanSd(x, digits = 2, na.rm = TRUE)
x |
A vector of numeric values. |
digits |
Number of decimal digits for showing the mean and sd of x. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
A string with the value of mean ± sd of the vector x.
meanSd(rnorm(50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.