quoteText | R Documentation |
Add single quotes to strings, useful for converting R strings into SQL formatted strings.
quoteText( x, char_only = TRUE, excluded_chars = c("NULL"), null_or_na_as_NULL = TRUE )
x |
A string. |
char_only |
TRUE/FALSE, if TRUE, adds quotes only if is.character(x) is TRUE. |
excluded_chars |
A character vector, will not add quotes if a value is in excluded_chars. |
null_or_na_as_NULL |
TRUE/FALSE, if TRUE, NULL and NA values are replaced with the string "NULL". |
A string, with single quotes added to match PostgreSQL string formatting.
quoteText("Sample quotes.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.