concept pipe operator in category R
appears as: pipe operators, pipe operator

This is an excerpt from Manning's book R in Action, Third Edition.
3.11.2 Using pipe operators to chain statements
The dplyr package allows you to write code in a compact format using the pipe operator (%>%) provided by the magrittr package. Consider the following three statements.
high_potentials <- filter(leadership, total_score > 10) high_potentials <- select(high_potential, ID, country, mean_score) high_potentials <- arrange(high_potential, country, mean_score)These statements can be rewritten as a single statement using the pipe operator.