rank_items | R Documentation |
This function ranks items in the data based on either the Relative Importance Index (RII) or the mean of responses.
rank_items(data, method = "rii", max_scale = 5, n = 5, top = TRUE)
data |
A data.frame of ordinal items. |
method |
Method to rank items. Either "rii" (for Relative Importance Index) or "mean" (for mean response). |
max_scale |
Max Likert scale value (default: 5). |
n |
Number of top items to return (default: 5). |
top |
Logical. If TRUE, returns the top items, otherwise returns the bottom items (default: TRUE). |
A vector of ranked items.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.