rguides

Tutorial series

Tidyverse Workflow

12 tutorials — follow in order for the best learning path.

  1. Functional Programming with purrr

    Replace loops with purrr. Covers map, map2, pmap, walk, reduce, safely, and other functional programming tools in the tidyverse.

  2. Pivoting Data with tidyr

    Convert data between wide and long formats using tidyr's pivot_longer and pivot_wider functions, with practical examples.

  3. Introduction to the Tidyverse

    Learn the fundamentals of the Tidyverse—a collection of R packages for data science. Discover how dplyr, ggplot2, tidyr, and more transform data analysis.

  4. Data Manipulation with dplyr

    Transform, filter, and summarize data with dplyr — the core tidyverse package. Covers filter, select, mutate, arrange, and group_by.

  5. Importing Data with readr

    Learn to import CSV, TSV, and delimited files into R using readr. Covers column types, locale settings, and common pitfalls.

  6. Reshaping Data with tidyr

    A complete guide to pivoting data between wide and long formats using tidyr's pivot_longer() and pivot_wider() functions.

  7. Fast File Import with readr

    Learn how to efficiently import flat files into R using the readr package. Covers CSV, TSV, delimited files, column types, and performance tips.

  8. Text Manipulation with stringr

    Manipulate text in R with stringr. Covers concatenation, pattern matching, regex, case conversion, trimming, padding, and interpolation inside dplyr pipelines.

  9. String Manipulation with stringr

    Master string manipulation in R with the stringr package. Learn pattern matching, string extraction, replacement, and whitespace handling.

  10. Functional Iteration with purrr

    Learn map(), map2(), pmap() for iterating over data and handle errors with safely(), possibly(), quietly().

  11. Working with dates in R using lubridate: a tutorial

    Work with dates and times in R using the lubridate package. Parse, format, extract components, compute durations, and handle timezones safely.

  12. Handling Factors with forcats

    Learn how to manage categorical data in R using the forcats package. Master factor creation, reordering, lumping, and recoding.