is.in.range | R Documentation |
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).
is.in.range(x, min = 0, max = 1)
x |
value to be tested |
min |
minimum admitted value |
max |
maximum admitted value |
TRUE if x is a numeric completely in the specified range, FALSE otherwise