powered by
Check whether argument x is within range.
is.inrange( x, range=c(0,1) )
numerical value(s) to be evaluated.
list of two numbers defining the range used in the evaluation of x.
Logical.
The return value indicates whether x is an element of [range[1], range[2]].
Note that the range used in the evaluation includes both endpoints of the specified range.
range.
range
# NOT RUN { is.inrange(1/2) is.inrange(pi, range=c(0,pi)) # }
Run the code above in your browser using DataLab