View source: R/database_functions.R
sql_IN | R Documentation |
sql_IN
will create an IN statement from a vector of values.
sql_IN(x, add_quotes = TRUE)
x |
A vector of values to create an IN statement with. |
add_quotes |
Whether to put single quotes around values. |
A sql_IN statement with single quotes around the values
my_in <- c("hello", "world")
sql_IN(my_in)
my_in2 <- c(1, 2, 3)
sql_IN(my_in2, FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.