Learn R Programming

soilDB (version 2.8.8)

format_SQL_in_statement: Format vector of values into a string suitable for an SQL IN statement.

Description

Concatenate a vector to SQL IN-compatible syntax: letters[1:3] becomes ('a','b','c'). Values in x are first passed through unique().

Usage

format_SQL_in_statement(x)

Value

A character vector (unit length) containing concatenated group syntax for use in SQL IN, with unique value found in x.

Arguments

x

A character vector.

Examples

Run this code
format_SQL_in_statement(c(2648889L, 2648890L))

Run the code above in your browser using DataLab