calculate_selected_category: Calculate the selected category based on a value and the...

View source: R/rule.R

calculate_selected_categoryR Documentation

Calculate the selected category based on a value and the number of categories.

Description

This function calculates the selected category based on a given value and the total number of categories.

Usage

calculate_selected_category(value, num_categories)

Arguments

value

The value to calculate the category for.

num_categories

The total number of categories.

Value

The calculated selected category.

Examples

selected_category <- calculate_selected_category(0.3, 5)


niarules documentation built on Sept. 15, 2025, 5:08 p.m.