Learn R Programming

stratallo (version 2.1.0)

h_get_which_violates: Get Proper Version of which_violates Function

Description

[Stable]

An internal function that prepares a simple 2-arguments wrapper of base::which() that checks whether its first argument exceeds the second one. Both arguments are numeric. This excess is hard coded in the returned wrapper function and it is defined either as \(>=\) ("greater or equal") or \(<=\) ("lower or equal"), depending on the value of the geq flag.

Usage

h_get_which_violates(geq = TRUE)

Value

2-arguments function that checks whether its first argument exceeds the second one. Both arguments must be numeric.

Arguments

geq

(flag)
if TRUE, then "greater or equal" condition is set. Otherwise, "less then or equal" is set.

See Also

rna_onesided().

Examples

Run this code
which_violates <- stratallo:::h_get_which_violates()
which_violates(1:3, 3:1)

which_violates <- stratallo:::h_get_which_violates(geq = FALSE)
which_violates(1:3, 3:1)

Run the code above in your browser using DataLab