in_between: Is a value within an interval?

Description Usage Arguments Examples

View source: R/out.R

Description

Is a value within an interval?

Usage

1
2
3
in_between(x, bounds, inclusive = TRUE)

x %in_between% bounds

Arguments

x

Vector of values to be tested.

bounds

Data frame with two columns or vector with two values.

inclusive

Are the bounds included within the interval.

Examples

1
2 %in_between% c(1, 3)

chgigot/cgmisc documentation built on May 14, 2019, 8:17 a.m.