| mean_sd | R Documentation |
Summary Helpers
mean_sd(x, times = 1L, remove_na = TRUE, named = TRUE, na.rm = TRUE, ...) median_mad( x, times = 1L, remove_na = TRUE, constant = 1.4826, named = TRUE, na.rm = TRUE, ... )
x |
A numeric vector (or one that can be coerced to one via
|
times |
How many SDs above and below the Mean (or MADs around the Median) |
remove_na |
Logical. Should |
named |
Should the vector be named?
(E.g., |
na.rm |
Deprecated. Please use |
... |
Not used. |
constant |
scale factor. |
A (possibly named) numeric vector of length 2*times + 1 of SDs
below the mean, the mean, and SDs above the mean (or median and MAD).
mean_sd(mtcars$mpg) mean_sd(mtcars$mpg, times = 2L) median_mad(mtcars$mpg)