Description Usage Arguments Value Examples
This function takes as input one vector and returns its mean and standard deviation in the most standard notation (mean ± sd).
1 | meansdText(x, dec = "default", digits = c(1, 1))
|
x |
A numeric vector |
dec |
Which decimal separator should be used? Defaults to ".". Allows to quickly changing to a comma in case you are producing a manuscript in German or Portuguese. |
digits |
How many digits should be kept for each piece of numeric information? Defaults to c(1, 1). |
A string of text to be included in a markdown object.
1 2 3 4 | x <- rnorm(50, mean=10, sd=20)
meansdText(x)
# Rounding
meansdText(x, digits=c(3, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.