dplyr now imports %>%
from magrittr and uses it by default. See this answer for details.
Differences include
you can use a
.
as placeholder for the left-hand side, e.g.iris %>% plot(Sepal.Length ~ Sepal.Width, data = .)
%>%
respects(rhs)
, e.g.1:10 %>% (call("sum")) 1:10 %>% (function(x) x^2 + 2*x)
For a more useful example of this, see
https://gist.github.com/anonymous/0c69b019d0b4f6ae5050For single argument function calls, you can omit parens:
"2014-05-18" %>% as.Date