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

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 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.