Pipes

In this module, you will learn how to compose functions using the pipe operator, |>.

Learning Goals

After completing this module, you will be able to:

  1. Explain the benefits of pipelines versus other methods of composing functions.
  2. Recognize situations in your analyses where a pipeline would be appropriate.
  3. Build pipelines to compose a series of R functions into a single command.
  4. Use four different types of pipe operator in your pipelines, as appropriate:
    1. The Base R pipe: |>
    2. The dplyr pipe: %>%
    3. The exposition pipe: %$%
    4. The assignment pipe: %<>%

Click the button below to get started with the tutorial.

Back to top