extractVarName

Extract variable names

Functions often get passed variables from within dataframes or other lists. However, printing these names with all their dollar signs isn't very userfriendly. This function simply uses a regular expression to extract the actual name.

Keywords
utils
Usage
extractVarName(x)
Arguments
x

A character vector of one or more variable names.

Value

The actual variables name, with all containing objectes stripped off.

Aliases
  • extractVarName
Examples
# NOT RUN {
extractVarName('mtcars$mpg');
# }
Documentation reproduced from package userfriendlyscience, version 0.6-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.