A Simple Example of Refactoring with the R Magrttr package

A Simple Example of Refactoring with the R Magrttr package

5 years ago
Anonymous $L9wC17otzH

https://medium.com/datadriveninvestor/real-life-refactoring-with-the-r-magrttr-ef131123ae82

Alexis Idlette-WilsonBlockedUnblockFollowFollowingJan 12Photo by Lidya Nada on UnsplashConfession time. I used to be a little bit of a tutorial junkie. If it said “Introduction to,” I was there for it. The problem with tutorials though is that they continually tell you what to do next. Of course one needs that at first (I assume) but the real learning occurs when you pick up your own project and try to apply the concepts from the tutorial without direction.

For this reason, I feel delighted when I find a real world situation that allows me to gingerly connect those dots I picked up from my most recent online class. Like most R programmers, I dutifully downloaded the magrittr package with the promise of syntactically efficient chains of code. I copied and pasted several dozen “%>%” pipes before I actually conceived an original thought to utilize one outside of a pre-written exercise.

A Simple Example of Refactoring with the R Magrttr package

Jan 13, 2019, 1:15am UTC
https://medium.com/datadriveninvestor/real-life-refactoring-with-the-r-magrttr-ef131123ae82 > Alexis Idlette-WilsonBlockedUnblockFollowFollowingJan 12Photo by Lidya Nada on UnsplashConfession time. I used to be a little bit of a tutorial junkie. If it said “Introduction to,” I was there for it. The problem with tutorials though is that they continually tell you what to do next. Of course one needs that at first (I assume) but the real learning occurs when you pick up your own project and try to apply the concepts from the tutorial without direction. > For this reason, I feel delighted when I find a real world situation that allows me to gingerly connect those dots I picked up from my most recent online class. Like most R programmers, I dutifully downloaded the magrittr package with the promise of syntactically efficient chains of code. I copied and pasted several dozen “%>%” pipes before I actually conceived an original thought to utilize one outside of a pre-written exercise.