Learn R Programming

kimisc (version 1.0.0)

in.interval.ro: Checks if values are contained in an interval (open on the right)

Description

This function checks if the values in the x parameter are contained in the interval [lo, hi). NA values are treated as "not in the interval".

Usage

in.interval.ro(x, lo, hi)

Value

A boolean vector of the same length as x.

Arguments

x

A vector of values. (Lists will be coerced to a numeric vector.)

lo

Left end of the interval.

hi

Right end of the interval.

See Also

in.interval.lo(), nin.interval.lo(), nin.interval.ro()

Examples

Run this code
in.interval.ro(c(-1, 0, 1, 2), 0, 1)
in.interval.ro(NA, 1, 3)

Run the code above in your browser using DataLab