3.6 Resources
This section contains links to resources on transforming data.
3.6.1 Help on data transformation
For more details on dplyr (Wickham, François, et al., 2023):
study
vignette("dplyr")
and the documentation for?arrange
,?filter
,?select
, etc.study https://dplyr.tidyverse.org and its examples;
read Chapter 5: Data transformation of r4ds (Wickham & Grolemund, 2017) and complete the corresponding exercises;
study the Posit cheatsheets on data transformation:
.](images/cheat/transformation.png)
Figure 3.8: Data transformation with dplyr summary from Posit cheatsheets.
3.6.2 R pipe operators
Additional details and opinions on the R pipe operators are available at the following links:
- see
vignette('magrittr')
of the magrittr package (Bache & Wickham, 2022)
- read Chapter 18: Pipes of the r4ds textbook
- for programming with pipes, see this discussion at stackoverflow
For comparisons between the base R pipe |>
and the magrittr pipe, see:
- New features in R 4.1.0 (by Russ Hyde, 2021-05-17)
- The new R pipe (by Elio Campitelli, 2021-05-25)
- Differences between the base R and magrittr pipes (by Hadley Wickham, 2023-04-21)
3.6.3 Tidyverse tools
For general information about the tidyverse (Wickham, 2023) and its principles:
see the announcements and articles at https://www.tidyverse.org;
read The tidy tools manifesto.
The topic of data transformation will stay with us for the rest of this book, as various later chapters cover more advanced aspects. For instance, Chapter 8 on Joining data will cover so-called 2-table-verbs of dplyr.
[03_transform.Rmd updated on 2025-04-09 by hn.]