Description Usage Arguments Details Value Examples
Given a factor variable to group on (dimension
), this will summarize the other variables terms of that one, and optionally include overall columns with summaries that ignore the dimension groupings. This will not return a ready-to-publish table, but does most of the hard work (the grouped computations).
1 |
df |
( |
dimension |
( |
overall |
( |
For each level of dimension
, the output will return a count and percentage for each level of other factor variabls, or a mean and standard deviation for the numeric variables.
All columns are of type character
to preserve formatting.
data.frame
with two columns per level of dimension
(and two more if overall=TRUE
) suffixed by "_count"/"_percent", one row for each numeric column of df
, and one row for each level of each non-dimension
factor column of df
, preceded by the name of that factor column.
1 2 3 | table_1(simulated_social_services, "service_1")
table_1(simulated_social_services, "service_1", overall = TRUE)
table_1(simulated_social_services, "service_2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.