nin.interval.lo: Checks if values are outside of an interval (open on the...

Description Usage Arguments Value See Also Examples

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

1
nin.interval.lo(x, lo, hi)

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.

Value

A boolean vector of the same length as x.

See Also

in.interval.lo, in.interval.ro, nin.interval.ro

Examples

1
2
nin.interval.lo(c(-1, 0, 1, 2), 0, 1)
nin.interval.lo(NA, 1, 3)

kimisc documentation built on May 2, 2019, 4:01 a.m.