R/nice_median.R
nice_median.Rd
Prints a median with interquartile range.
nice_median(x, digits = 1)
A numeric vector
The number of digits to which values will be rounded
A median with interquartile range in brackets
data(mtcars) nice_median(mtcars$cyl) #> [1] "6 (IQR:4-8)"