medianIQR | R Documentation |
Median and Interquartile Range
medianIQR(x, digits = 2, probs = c(0.25, 0.75), roundFrom = 30, na.rm = TRUE)
x |
A vector of numeric values. |
digits |
Number of decimal digits for showing the median and Interquartile Range of x. |
probs |
Pair of quantiles to be computed around the median. Default are q25 and q75. |
roundFrom |
If median is greater than this value, median and IQR are rounded to zero decimals even if digits>0. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
A character with the value of the median and Interquartile Range.
medianIQR(rnorm(50))
medianIQR(runif(500,0,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.