Description Usage Arguments Value Author(s) Examples
Very simple function to compute the mean and the standard deviation of a vector of numbers and format them as mean (standard deviation). The number of digits to be kept could be set for the mean and the standard deviation.
1 | strMeanSd(x, dmean = 2, dsd = 1)
|
x |
A vector of numbers. |
dmean |
Optional, the number of digits to use in rounding the mean. Default to 2. |
dsd |
Optional, the number of digits to use in rounding the standard deviation. Default to 1. |
Return a string formatted as mean (standard deviation).
Guillaume T. Vallet gtvallet@gmail.com, University of Montreal (Canada)
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.