Chapter 10 Basic Tidyverse Concepts

The Treachery of Images (Rene Magritte, 1948).

Figure 10.1: The Treachery of Images (Rene Magritte, 1948).

In this chapter we will introduce a few tools from the tidyverse set of R-packages:

  • the pipe operator %>% for chaining function calls in a convenient and readable way;
  • the tibble class, a variant of the data frame that is especially suitable for large data sets;
  • data manipulation functions from the dplyr package suitable for use with the pipe operator:
    • filter() and select() for sub-setting;
    • mutate() for transforming variables;
    • group_by() and summarise() for numerical summaries of data.