Learn R Programming

eply (version 0.1.2)

quotes: Function quotes

Description

Put quotes around each element of a character vector.

Usage

quotes(x = NULL, single = FALSE)

Arguments

x

character vector or object to be coerced to character.

single

Add single quotes if TRUE and double quotes otherwise.

Value

character vector with quotes around it

See Also

unquote, strings, eply, help_eply

Examples

Run this code
# NOT RUN {
quotes(letters[1:3])
quotes(letters[1:3], single = TRUE)
quotes(letters[1:3], single = FALSE)
# }

Run the code above in your browser using DataLab