response_prop | R Documentation |
Returns a table of proportions for each possible response category.
response_prop(data, n_levels)
data |
numeric vector or matrix of responses. |
n_levels |
number of response categories. |
A table of response category proportions.
data <- c(1, 2, 2, 3, 3, 3)
response_prop(data, n_levels = 3)
data_matrix <- matrix(c(1, 2, 2, 3, 3, 3), ncol = 2)
response_prop(data_matrix, n_levels = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.