extractVarName: Extract variable names

Description Usage Arguments Value Author(s) Examples

View source: R/extractVarName.R

Description

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.

Usage

1

Arguments

x

A character vector of one or more variable names.

Value

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

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

Examples

1
extractVarName('mtcars$mpg');

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.