Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

between

Check for Inclusion in a Closed Interval


Description

Returns a logical vector like y showing if each element lies in the closed interval [min(x1, x2), max(x1, x2)].

Usage

between(y, x1, x2)

Arguments

y

a numeric object

x1

a number

x2

a number

Value

A logical object like y.

Examples

mat <- matrix(rnorm(16), 4, 4)
mat
between(mat, -2, 1)

tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.