Learn R Programming

saros (version 1.6.1)

calculate_category_order: 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)

Value

Numeric vector of ordering values

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