Skip to content

Instantly share code, notes, and snippets.

@tmastny
Last active August 30, 2019 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmastny/11b8059dcb2de6b496161f409453fa66 to your computer and use it in GitHub Desktop.
Save tmastny/11b8059dcb2de6b496161f409453fa66 to your computer and use it in GitHub Desktop.
library(rlang)
"select"(iris, Species)
fn_var <- "select"
expr((!!sym(fn_var))(iris, Species) %>% head) %>%
rlang::eval_tidy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment