Skip to content

Instantly share code, notes, and snippets.

@ivan-krukov

ivan-krukov/R_ify.R

Created Mar 30, 2016
Embed
What would you like to do?
Use dots instead of dollar signs in R
# Use dots (.) instead of ($)
R_ify <- function(expr) eval(parse(text=
gsub("\\.","$",substitute(expr))))
R_ify(mtcars.mpg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.