← R Programming learning path
R Programming · Module 4 of 10

Data wrangling with dplyr

Filter, select, mutate and summarise data.

📖 Key ideas

  1. filter() keeps rows matching conditions.
  2. select() picks columns; arrange() sorts.
  3. mutate() creates new columns.
  4. group_by() + summarise() calculates group statistics.
  5. The pipe |> (or %>%) chains steps.
💡 Real-life example: dplyr verbs are kitchen steps: wash (filter), chop (select), cook (mutate), serve (summarise).
filter()Keeps matching rows
mutate()Adds or changes columns
summarise()Reduces to summary values
|>Pipe operator