powered by
getname runs 'deparse(substitute(x))' to get the name of the input variable. Saves remembering the syntax
getname(x)
any variable whose name is wanted as a character string
a character string with the name of input variable
# NOT RUN { a_variable <- c(1,2,3,4,5,6,7,8) getname(a_variable) # }
Run the code above in your browser using DataLab