Created
August 18, 2015 13:27
-
-
Save ClintWeathers/60c1333ef46220ed355b to your computer and use it in GitHub Desktop.
Question Re Piping Inside A Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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