powered by
Compute mean and sd and put together with the ± symbol.
meansd( x, roundDig = 2, drop0 = FALSE, groupvar = NULL, range = FALSE, rangesep = " ", add_n = FALSE, .german = FALSE )
character vector with mean ± SD, rounded to desired precision
Data for computation.
Number of relevant digits for roundR.
Should trailing zeros be dropped?
Optional grouping variable for subgroups.
Should min and max be included in output?
How should min/max be separated from mean+-sd?
Should n be included in output?
logical, should "." and "," be used as bigmark and decimal?
# basic usage of meansd meansd(x = mtcars$wt) # with additional options meansd(x = mtcars$wt, groupvar = mtcars$am, add_n = TRUE)
Run the code above in your browser using DataLab