median_iqr | R Documentation |
Calculates the median and interquartile range of a numeric column in a dataframe and returns three numeric columns.
median_iqr(df, variable)
df |
Dataframe. |
variable |
Numeric column used for calculation. |
Three new columns with median, q25, q75.
median_iqr(mtcars, mpg) #> median q25 q75 #> 1 19.2 15.425 22.8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.