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

Description Usage Arguments Examples

Description

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

Usage

1
between(x, left, right)

Arguments

x

A numeric vector of values

left, right

Boundary values

Examples

1
2
3
4
between(1:12, 7, 9)

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

olascodgreat/samife documentation built on May 13, 2019, 6:11 p.m.