and_join: Join a vector with 'AND'

View source: R/sql_helpers.R

and_joinR Documentation

Join a vector with 'AND'

Description

Join a vector with 'AND'

Usage

and_join(s, leading_and = FALSE, trailing_and = FALSE)

Arguments

s

a character vector

leading_and

logical indicating whether 'and' should be pre-pended

trailing_and

logical indicating whether 'and' should be post-pended

Value

a string with the elements of s joined by 'AND'

Examples

and_join("")
and_join("country = 'US'")
and_join(c("country = 'US'", "type = 1"))

colin-fraser/queries documentation built on April 14, 2022, 2:12 p.m.