toName
converts a character string x
to an R symbol / name,
while copying all attributes iff copyAttributes
is TRUE
.
In the case that x
is not a character string, a copy of the object
is returned as-is.
extractLeafSymbols
returns the set of symbols (names) at the leafs
of an expression expr
. The symbols are returned as character strings.
toName(x, copyAttributes = TRUE)
extractLeafSymbols(expr)
x
to the
result object.