iQuote: Quote Identifiers

View source: R/utils.R

iQuoteR Documentation

Quote Identifiers

Description

Quote strings representing variable identifiers with backticks for use in formulas.

Usage

iQuote(x, q = "`")

Arguments

x

An object coercible to a character vector.

q

The kind of quotes to be used.

Value

A character vector of the same length as x.

Author(s)

Kylie A. Bemis

See Also

sQuote, dQuote

Examples

x1 <- "This is a non-syntactic variable name"
x2 <- "This is another variable name"
fm <- paste0(iQuote(x1), "~", iQuote(x2))
as.formula(fm)

kuwisdelu/matter documentation built on Sept. 18, 2024, 6:31 p.m.