calculate_category_order: Calculate ordering based on a specific category value

View source: R/sorting_utils.R

calculate_category_orderR Documentation

Calculate ordering based on a specific category value

Description

Calculate ordering based on a specific category value

Usage

calculate_category_order(data, category_value, descend = FALSE)

Arguments

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

Value

Numeric vector of ordering values


saros documentation built on Nov. 10, 2025, 5:06 p.m.