powered by
Add single quotes to strings using stringi::stri_join, useful for converting R strings into SQL formatted strings.
quoteText2(x, char_only = TRUE, excluded_chars = c("NULL"))
A string, with single quotes added to match SQL string formatting.
A string.
TRUE/FALSE, if TRUE, adds quotes only if is.character(x) is TRUE.
A character vector, will not add quotes if a value is in excluded_chars.
quoteText2("Sample quotes.")
Run the code above in your browser using DataLab