between: between test

Description Usage Arguments Details Value Author(s) Examples

View source: R/clusterluts.R

Description

test for x to lie between low and high (including the margins), i.e., low ≤q x ≤q high

Usage

1
between(x, low, high = NULL, index = TRUE, named = TRUE, edges = NULL, ...)

Arguments

x

value(s) to test

low

lower bound(s) of test interval(s)

high

upper bound(s) of test interval(s)

index

when set return indices, otherwise match matrix (see description)

named

whether to put names on the return value

edges

which of a range's edges to include in the range

...

ignored

Details

between is vectorized for x as well as for the limits. In the case of vectorized limits low and high have to have the same length and the ranges are defined by corresponding pairs from low and high (those ranges are allowed to overlap).

Value

index vector or match matrix

Author(s)

Benno Pütz puetz@psych.mpg.de

Examples

1
2
between(c(1,pi), 0:3,2:5+.5, TRUE)
between(c(1,pi), 0:3,2:5+.5, FALSE)

bennop/clusterLUTs documentation built on Nov. 21, 2020, 9:07 a.m.