is.in.ranges function

Check whether parameters are in ranges.