Skip to content

Instantly share code, notes, and snippets.

@trcook
Created April 3, 2013 13:58
Show Gist options
  • Select an option

  • Save trcook/5301420 to your computer and use it in GitHub Desktop.

Select an option

Save trcook/5301420 to your computer and use it in GitHub Desktop.
Convert Object Name to String
myfun <- function(x) deparse(substitute(x))
# so myfun(myQOG) will give output "myQOG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment