formatMedIQR | R Documentation |
Function to format the median and IQR of a variable
formatMedIQR(x, d = 2, na.rm = TRUE)
x |
the data to have the median and IQR calculated |
d |
How many digits to display. Defaults to 2. |
na.rm |
Logical whether to remove missing values. Defaults to |
A character string with results
formatMedIQR(mtcars$mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.