Learn R Programming

rgp (version 0.4-1)

toName: Functions for handling R symbols / names

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

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.