<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/more-pipes-in-r/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.win-vector.com/blog/2017/12/more-pipes-in-r/"> R – Win-Vector Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Was enjoying Gabriel’s article <a rel="nofollow" href="https://r-posts.com/pipes-in-r-tutorial-for-beginners/" target="_blank">Pipes in R Tutorial For Beginners</a> and wanted call attention to a few more pipes in R (not all for beginners).</p>
<p><span></span></p>
<ul>
<li><a rel="nofollow" href="https://github.com/Rdatatable/data.table/wiki" target="_blank">data.table</a> has essentially used the square bracket sequence “<code>][</code>” in a manner equivalent to piping in R since about 2006. <a rel="nofollow" href="https://github.com/WinVector/rquery/blob/master/extras/data_table.md" target="_blank">Here is an example.</a></li>
<li>The Bizarro Pipe “<code>->.;</code>” has always been possible in R, though I worked it out and <a rel="nofollow" href="http://www.win-vector.com/blog/2016/12/magrittrs-doppelganger/" target="_blank">started teaching it in 2016</a>. And it is as quick to type as any other notation once you <a rel="nofollow" href="https://github.com/WinVector/addinexamplesWV" target="_blank">bind it to a keyboard shortcut</a>.</li>
<li>Lately we have been using <a rel="nofollow" href="https://winvector.github.io/wrapr/articles/dot_pipe.html" target="_blank">wrapr’s “dot pipe”</a> “<code>%.>%</code>” under the theory that the placeholders may actually make sense as the <em>primary objects in pipes</em> (i.e., piping may be more about value sequencing than about function composition).</li>
<li>We toyed with the idea of <a rel="nofollow" href="http://www.win-vector.com/blog/2016/08/the-magrittr-monad/" target="_blank">adding a Kleisli arrow to R</a>, and may get back to that one day.</li>
</ul>
<p><center><br>
<img border="0" src="https://i0.wp.com/www.win-vector.com/blog/wp-content/uploads/2017/12/NewImage.png?resize=598%2C392" alt="NewImage" width="450" title="NewImage.png" data-recalc-dims="1">
<p>The <strike>Kleisli arrow</strike> Khaleesi and dragon.<br>
</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.win-vector.com/blog/2017/12/more-pipes-in-r/"> R – Win-Vector Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/Hd_fKJN2UUk" height="1"></a></div></center>