eply (version 0.1.2)

unquote: Function unquote

Description

Remove leading and trailing escaped quotes from character strings.

Usage

unquote(x = NULL, deep = FALSE)

Arguments

x

character vector

deep

remove all outer quotes if TRUE and only the outermost set otherwise. Single and double quotes are treated interchangeably, and matching is not checked.

Value

character vector without leading or trailing escaped quotes around it

See Also

quotes, strings, eply, help_eply

Examples

Run this code
# NOT RUN {
unquote(c("x", "'y'", "\"why\"", "'''z'''"))
unquote(c("x", "'y'", "\"why\"", "'''z'''"), deep = FALSE)
unquote(c("x", "'y'", "\"why\"", "'''z'''"), deep = TRUE)
# }

Run the code above in your browser using DataCamp Workspace