is.in.range: Is in the passed numeric range
Description
Function returns TRUE if the passed variable is numeric and all its content
is in the passed range (defined by min
and max
). Works also in
array (in that case all values must be in the range).
Usage
is.in.range(x, min = 0, max = 1)
Value
TRUE if x is a numeric completely in the specified range, FALSE otherwise
Arguments
- x
value to be tested
- min
minimum admitted value
- max
maximum admitted value