Description Usage Arguments Value Examples
Table showing mean, SD, range, for one or more numeric variables
1 |
data |
A data frame |
... |
Comma-separated list of variables to calculate means for. |
group |
An optional grouping variable, e.g. trial arm |
A data frame with descriptive statistics (mean, SD, range) for the selected variables.
1 2 3 4 5 6 7 8 9 10 | data(mtcars)
table_of_means(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.