SyntaxFix
Write A Post
Hire A Developer
Questions
You can use deparse and substitute to get the name of a function argument:
deparse
substitute
myfunc <- function(v1) { deparse(substitute(v1)) } myfunc(foo) [1] "foo"