expressionNames: Functions for handling R symbols / names

Description Usage Arguments Value

Description

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.

Usage

1
2
3
toName(x, copyAttributes = TRUE)

extractLeafSymbols(expr)

Arguments

x

The object to operate on.

expr

An R expression.

copyAttributes

Whether to copy all attributes of x to the result object.

Value

The result.


rgp documentation built on May 30, 2017, 12:45 a.m.