summary_table_all | R Documentation |
This function generates a tidy summary table for all ordinal items in a data.frame. The table includes statistics such as mean, median, standard deviation, counts, and percentages.
summary_table_all(data, max_scale = 5, scale_labels = NULL, decimals = 2)
data |
A data.frame of ordinal items. |
max_scale |
Max value on the Likert scale (default: 5). |
scale_labels |
Optional vector of labels for each scale point. |
decimals |
Number of decimal places for percentages (default: 2). |
A data.frame with summary statistics for all items.
dat <- data.frame(Q1 = c(1, 2, 3, 4, 5), Q2 = c(2, 2, 3, 4, NA))
summary_table_all(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.