See magrittr::[\%>\%][magrittr::pipe] for details.

lhs %>% rhs

lhs %$% rhs

lhs %T>% rhs

Examples

# Quick introduction to pipe operators x <- 1:5 ### %>% the forward operator x %>% mean()
#> [1] 3
# is equivalent to mean(x)
#> [1] 3
### %T>% the tee operator x %T>% plot %>% mean()
#> [1] 3
# it takes left hand side, do something (here a plot) # then pass it to next function (mean) ### %$% the exposition operator l <- list(x=x, x2=x^2) l %$% x
#> [1] 1 2 3 4 5
# or l %$% mean(x2)
#> [1] 11
# names in l (x and x2) are "exposed" to right hand side # See magrittr vignette for more!