add_quote: Interval Closure Classification

Description Usage Arguments Value Note Examples

Description

An alternative to sQuote, ideally for passing quoted values to another R function. When you want fancy quotes (for visual appeal), use sQuote.

Usage

1
add_quote(x, qmark = "'")

Arguments

x

any character object to be be surrounded with quotation marks. If x is not a character object and can be coerced to a character object, it will, but with a warning message.

qmark

Any character to 'surround' x. Defaults to single quotation marks (not fancy).

Value

a character vector in single quotes (default behavior). Changing qmark will result in different character(s) surrouding 'x'.

Note

sQuote is very similar but to get the same behavior options must be changed. (i.e. options(useFancyQuotes = FALSE))

Examples

1
2
add_quote("10/1/2012")
add_quote(1)

equastat/Emisc documentation built on May 16, 2019, 8:24 a.m.