Skip to content

Instantly share code, notes, and snippets.

@ClintWeathers
Created August 18, 2015 13:27
Show Gist options
  • Save ClintWeathers/60c1333ef46220ed355b to your computer and use it in GitHub Desktop.
Save ClintWeathers/60c1333ef46220ed355b to your computer and use it in GitHub Desktop.
Question Re Piping Inside A Function
It's not uncommon where I'm working to get some dataset with a needlessly longass name and needlessly longass field names.
Unfortunately, they want the field names and dataset names left as is, in situ.
Is there something like %>% for single-line stuff that would do this:
Instead of...
omgthisdatasetnameissolong$whythehelldidtheynamethisfieldlikethis <- as.character(omgthisdatasetnameissolong$whythehelldidtheynamethisfieldlikethis)
maybe this...
omgthisdatasetnameissolong$whythehelldidtheynamethisfieldlikethis <- as.character(%>%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment