Learn R Programming

pgTools (version 1.0.2)

vecToArrayStr: Write a PostgreSQL array as a string using ARRAY[] format from a vector.

Description

Write a PostgreSQL array as a string using ARRAY[] format from a vector.

Usage

vecToArrayStr(x, quote = TRUE)

Value

A string.

Arguments

x

A vector.

quote

TRUE/FALSE, if TRUE, the elements of x will be quoted.

Examples

Run this code
vecToArrayStr(c("a", "b"))

Run the code above in your browser using DataLab