Description Usage Arguments Value Examples
Table showing median, IQR, and range, for one or more numeric variables
1 |
data |
A data frame |
... |
Comma-separated list of variables to calculate medians for. |
group |
An optional grouping variable, e.g. trial arm |
A data frame with descriptive statistics (median, IQR, range) for the selected variables.
1 2 3 4 5 6 7 8 9 10 11 | data(mtcars)
table_of_medians(mtcars, wt, hp)
table_of_medians(mtcars, wt, hp, group = cyl)
data(starwars)
table_of_means(starwars,
height, mass, birth_year)
table_of_means(starwars,
height, mass, birth_year,
group = gender)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.