Learn R Programming

multiplyr (version 0.1.1)

between: Tests whether elements of a vector lie between two values (inclusively)

Description

Tests whether elements of a vector lie between two values (inclusively)

Usage

between(x, left, right)

Arguments

x
Values to test
left
Left value
right
Right value

Value

x >= left & x <= right="" <="" dl="">

See Also

Other utility functions: cumall, cumany, cummean, distribute, first, lag, last, lead, n_distinct, n_groups, nth, n

Examples

Run this code
between (5, 1, 10)
between (11, 1, 10)
between (-5, -10, 0)

Run the code above in your browser using DataLab