A Pipe version of Zev Ross.
An alternative version of timelyportfolio's and smbache's.
If you are not familiar with pipeR, you can read the still-in-progress pipeR tutorial.
The best practices of pipeR's Pipe()
:
- Keep side effects as small as possible, use it only when necessary.
- Separate Pipes into concentrated pieces.
- Don't avoid necessary intermediate variables.
- The purpose is always readability, not throwing everything into a big pipe.
After all, using pipeline does not automatically make your code better!.