unquote {eply}R Documentation

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

unquote(c("x", "'y'", "\"why\"", "'''z'''"))
unquote(c("x", "'y'", "\"why\"", "'''z'''"), deep = FALSE)
unquote(c("x", "'y'", "\"why\"", "'''z'''"), deep = TRUE)

[Package eply version 0.1.2 Index]