powered by
Function to format the median and IQR of a variable
formatMedIQR(x, d = 2, na.rm = TRUE)
the data to have the median and IQR calculated
How many digits to display. Defaults to 2.
Logical whether to remove missing values. Defaults to TRUE.
TRUE
A character string with results
# NOT RUN { formatMedIQR(mtcars$mpg) # }
Run the code above in your browser using DataLab