R/utils-pipe.R
pipe.Rd
Re-export of the magrittr pipe. See %>% from magrittr for full details. It forwards the left-hand side (LHS) as the first argument to the right-hand side (RHS) call.
%>%
lhs %>% rhs
The result of applying rhs to lhs.
rhs
lhs
# Basic usage 1:5 %>% sum() #> [1] 15 # Chain multiple transformations 1:10 %>% mean() %>% round(1) #> [1] 5.5