Learn R Programming

rtemis (version 0.79)

getName: rtemis internal: Get Variable Name from Arguments

Description

Get the name of the variable passed as argument, limit number of characters in case of failure

Usage

getName(x, alt = "x", max.nchar = 20)

Arguments

x

Variable whose name you want to extract

alt

String: If name derived from deparse(substitute(x)) exceeds max.nchar characters, use this name instead

max.nchar

Integer: Maximum N of characters to allow for name

Details

One way to test is to use learn with x.name = NULL, y.name = NULL