Skip to content

Instantly share code, notes, and snippets.

@nassimhaddad
Created July 7, 2016 09:08
Show Gist options
  • Save nassimhaddad/880878ede3e4fa271e0c3609ae9f15f3 to your computer and use it in GitHub Desktop.
Save nassimhaddad/880878ede3e4fa271e0c3609ae9f15f3 to your computer and use it in GitHub Desktop.
non standard evaluation with dplyr::mutate_ line by line #dplyr
cols_to_paste <- c("col1", "col2")
concatenation <- paste0("paste(", paste(cols_to_paste, collapse = ","), ")")
text_table <- the_data %>% mutate_(verbatim = concatenation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment