3  Processing Tabular Data

Chapter 03

Processing Tabular Data

  • Single Table Verbs
    • Select and rename
    • The pipe operator
    • Filter
    • Arrange
    • Mutate and transmute
    • Application
  • Summarizing
    • Counts
    • Summary functions
  • Pivoting Data
  • Joining Tables
  • Practice
Note 3.1

Since I already know quite a bit about this topic, I skipped it. There are, therefore, no notes on it.

But I have two remarks:

  • I am going to use the native pipe, provided with R 4.1.0. This are important differences to the {magrittr} pipe. See
    • Hadley Wickham in the Tidyverse (“Differences between the base R and magrittr pipes”),
    • Kathie Press (“Replacing the Magrittr Pipe With the Native R Pipe”)
    • Geek for Geeks (“What are the differences between R’s native pipe |> and the {magrittr} pipe %>%?”)
    • Isabella Velásquez (“Understanding the native R pipe |>”)
    • StackOverflow (“What are the differences between R’s native pipe |> and the {magrittr} pipe %>%?”)
    • Yihui Xie (“Substitute the magrittr Pipe %>% with R’s Native Pipe Operator |>”)
    • R Bloggers (The new R pipe)
    • Statistik Dresden (“R 4.1.0: Base R Pipe! |>”) in German
  • dplyr::transmute() is superseded because you can perform the same job with mutate(.keep = "none").