name: Variable Name

View source: R/label.R

nameR Documentation

Variable Name

Description

This function returns character value previously stored in variable's name attribute. If none found, the function defaults to object's name.

Usage

name(x)

Arguments

x

an R (atomic or data.frame/list) object to extract names from

Value

a character value with variable's label

Examples

## Not run: 
name(mtcars$am)
x <- 1:10
name(x)

## End(Not run)

Rapporter/rapportools documentation built on March 23, 2022, 2:23 a.m.