inRange: inRange

Description Usage Arguments Value Author(s)

View source: R/inRange.R

Description

Check whether x is in the range of any one of several disjoint intervals

Usage

1
inRange(x, intervals)

Arguments

x

the value to check if it's in the intervals

intervals

a vector of even length; the odd elements correspond to the lower end of the interval, and the even elements are the upper ends of the intervals

Value

logical; TRUE if x is in any of intervals

Author(s)

Spencer Woody


spencerwoody/saFAB documentation built on Feb. 18, 2020, 5:56 a.m.