Learn R Programming

dbWebForms (version 0.1.0)

quoteText: Add single quotes to strings, useful for converting R strings into SQL formatted strings.

Description

Add single quotes to strings, useful for converting R strings into SQL formatted strings.

Usage

quoteText(x, char_only = TRUE)

Arguments

x

A string.

char_only

TRUE/FALSE, if TRUE, adds quotes only if is.character(x) is TRUE.

Value

A string, with single quotes added to match postgreSQL string formatting.

Examples

Run this code
# NOT RUN {
quoteText("Sample quotes.")
# }

Run the code above in your browser using DataLab