View source: R/sorting_utils.R
| calculate_category_order | R Documentation |
Calculate ordering based on a specific category value
calculate_category_order(data, category_value, descend = FALSE)
data |
Dataset with .category and .count columns |
category_value |
The category value to sort by (e.g., "A bit") |
descend |
Logical indicating if sorting should be descending |
Numeric vector of ordering values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.