Magrittr has those different pipes:
%>%Pipe%<>%Assignment pipe%$%Exposition pipe%!>%Eager pipe%T>%Tee pipe
What are their differences and use cases?
Magrittr has those different pipes:
%>% Pipe%<>% Assignment pipe%$% Exposition pipe%!>% Eager pipe%T>% Tee pipeWhat are their differences and use cases?
%>%PipePipe an object forward into a function or call expression.
See also: What are the disadvantages when using a function without empty parentheses with %>% the pipe of magrittr?.
%<>%Assignment pipePipe an object forward into a function or call expression and update the lhs object with the resulting value.
%$%Exposition pipeExpose the names in lhs to the rhs expression. This is useful when functions do not have a built-in data argument.
See also: Should I use %$% instead of %>%?.
%!>%Eager pipeEvaluate from left to right. Whereas
%>%is lazy and only evaluates the piped expressions when needed,%!>%is eager and evaluates the piped input at each step. Also it evaluates in the same environment.%T>%Tee pipePipe a value forward into a function- or call expression and return the original value instead of the result. This is useful when an expression is used for its side-effect, say plotting or printing.
See also: magrittr tee pipe %T>% equivalent.