I stacked with trying to pass variable through few functions, and on the final function I want to get the name of the original variable. But it seems like substitute functio
One hack, probably not the best way:
fun2 <- function (var_pass) { fun1 (deparse(substitute(var_pass))) } fun1 <- function (some_variable) {(some_variable))} fun2(my_var) # "my_var"
And you could run get on that. But as Paul H, suggests, there are better ways to track variables.
get