Learn R Programming

datacheck (version 0.9.8)

is.withinRange: Tests if a numeric value is between a minimal and maximum value. Serves as convenience function.

Description

Tests if a numeric value is between a minimal and maximum value. Serves as convenience function.

Usage

is.withinRange(val, min, max)

Arguments

val
The value to be checked
min
The minimal value (inclusive)
max
The maximum value (inclusive)

Value

  • boolean TRUE if detects anything

See Also

Other rule_checks: has.punct, is.oneOf, is.onlyLowers, is.properName

Examples

Run this code
is.withinRange(1,0,2) == TRUE

is.withinRange(-1,0,2) == FALSE

Run the code above in your browser using DataLab