unquote: Function 'unquote'

Description Usage Arguments Value See Also Examples

View source: R/character.R

Description

Remove leading and trailing escaped quotes from character strings.

Usage

1
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

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

wlandau-lilly/eply documentation built on May 4, 2019, 8:43 a.m.