tests/testthat/examples/examples-man/between.md

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

  between(x, left, right)

Arguments

x

A numeric vector of values

left, right

Boundary values (must be scalars).

Examples

  between(1:12, 7, 9)

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

  ## Or on a tibble using filter
  filter(starwars, between(height, 100, 150))


Try the altdoc package in your browser

Any scripts or data that you put into this service are public.

altdoc documentation built on April 3, 2025, 10:52 p.m.