is.withinRange: Tests if a numeric value is between a minimal and maximum...

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1

Arguments

val

The value to be checked

min

The minimal value (inclusive)

max

The maximum value (inclusive)

Value

boolean TRUE if detects anything

Author(s)

Reinhard Simon

See Also

Other rule_checks: has.punct; has_punct; is.oneOf; is.onlyLowers; is.properName; is_one_of; is_only_lowers; is_proper_name; is_within_range

Examples

1
2
3
is_within_range(1, 0, 2) == TRUE

is_within_range(-1, 0, 2) == FALSE 

c5sire/datacheck documentation built on May 13, 2019, 10:32 a.m.