countValuesBeyondThreshold: Count Values Greater or Less Than a Threshold

View source: R/3-shared-updateCutoffs.R

countValuesBeyondThresholdR Documentation

Count Values Greater or Less Than a Threshold

Description

This function counts the number of values greater or less than a threshold. The direction depends on if a direct or inverse relationship is asked, as well as the sign of the threshold.

Usage

countValuesBeyondThreshold(values, cutoff, direct)

Arguments

values

A numeric vector.

cutoff

A numeric value.

direct

A logical value. If TRUE, direct relationship is considered.

Value

The number of values greater or less than the threshold.


tpq/propr documentation built on Feb. 3, 2025, 4:23 a.m.