View source: R/discrete_table.R
cat_data | R Documentation |
Summarize categorical data
cat_data(
data,
cols,
by = ".total",
panel = by,
summarize_all = TRUE,
all_name = "All",
wide = FALSE,
nby = NULL,
complete = FALSE,
denom = c("group", "total")
)
data |
the data frame to summarize; the user should filter or subset
so that |
cols |
the columns to summarize; may be character vector or quosure |
by |
a grouping variable; may be character vector or quosure |
panel |
data set column name to stratify the summary |
summarize_all |
logical indicating whether or not to include a summary of the full data in the output. |
all_name |
label for full data summary. |
wide |
|
nby |
number of unique levels for the |
complete |
logical; if |
denom |
the denominator to use when calculating percent for each level;
|
cat_data(pmt_first, cols = c(SEX = "SEXf", RF = "RFf"), by = "STUDYf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.