powered by
Summary Helpers
mean_sd(x, times = 1L, remove_na = TRUE, named = TRUE, ...)median_mad( x, times = 1L, remove_na = TRUE, constant = 1.4826, named = TRUE, ... )
median_mad( x, times = 1L, remove_na = TRUE, constant = 1.4826, named = TRUE, ... )
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).
2*times + 1
A numeric vector (or one that can be coerced to one via as.numeric()) to be summarized.
as.numeric()
How many SDs above and below the Mean (or MADs around the Median)
Logical. Should NA values be removed before computing (TRUE) or not (FALSE, default)?
NA
TRUE
FALSE
Should the vector be named? (E.g., c("-SD" = -1, Mean = 1, "+SD" = 2).)
c("-SD" = -1, Mean = 1, "+SD" = 2)
Not used.
scale factor.
mean_sd(mtcars$mpg) mean_sd(mtcars$mpg, times = 2L) median_mad(mtcars$mpg)
Run the code above in your browser using DataLab