Skip to contents

These functions help to work with numeric ranges.

Usage

between(x, range)

x %between% range

Arguments

x

numeric, input values.

range

numeric(2), range to compare against.

Value

logical vector of length length(x).

See also

Other helper functions for developers: isPeaksMatrix(), rbindFill(), validPeaksMatrix(), vapply1c(), which.first()

Author

Sebastian Gibb

Examples

between(1:4, 2:3)
#> [1] FALSE  TRUE  TRUE FALSE
1:4 %between% 2:3
#> [1] FALSE  TRUE  TRUE FALSE