variable_name {oeli} | R Documentation |
Determine variable name
Description
This function tries to determine the name of a variable passed to a
function
.
Usage
variable_name(variable, fallback = "unnamed")
Arguments
variable |
[ |
fallback |
[ |
Value
A character
, the variable name.
See Also
Other function helpers:
do.call_timed()
,
function_arguments()
,
function_body()
,
function_defaults()
,
quiet()
,
timed()
,
try_silent()
Examples
variable_name(a)
f <- function(x) variable_name(x)
f(x = a)
[Package oeli version 0.7.0 Index]