dplyr (version 0.3.0.2)

between: Do values in a numeric vector fail in specified range?

Description

This is a shortcut for x >= left & x <= right<="" code="">, implemented efficiently in C++ for local values, and translated to the appropriate SQL for remote tables.

Usage

between(x, left, right)

Arguments

x
A numeric vector of values
left,right
Boundary values

Examples

Run this code
x <- rnorm(1e2)
x[between(x, -1, 1)]

Run the code above in your browser using DataLab