getNameAsString: Returns the name of a variable as a string.

Description Usage Arguments Value Note Examples

Description

This function just removes the need to look up how to do this (fairly common) operation, which I seem to have to do all the time, because I can't remember the (little used) syntax.

Usage

1
getNameAsString(pVarName)

Arguments

pVarName

A variable name (no quotes or anything)

Value

The variable name as a string

Note

Internal Function; NOT EXPORTED

Examples

1
2
# Returns c("myVariable")
vStr <- getNameAsString(myVariable)

johninpdx/RSTools documentation built on May 19, 2019, 5:15 p.m.