str_sql_collapse: Function to collapse vectors into a vector with a length of...

View source: R/str_sql_collapse.R

str_sql_collapseR Documentation

Function to collapse vectors into a vector with a length of one for use in SQL statements.

Description

str_sql_collapse will quote character and factor vectors before being collapsed.

Usage

str_sql_collapse(x)

Arguments

x

A vector to be collapsed.

Value

A character vector with a length of one.

Author(s)

Stuart K. Grange

Examples


# Collapse an integer vector
str_sql_collapse(1:10)

# Collapse a character vector
str_sql_collapse(letters[1:10])


skgrange/databaser documentation built on April 21, 2024, 6:30 a.m.