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

    Data manipulation with dplyr in R. Master filter, select, mutate, arrange, group_by, and summarise to transform and aggregate data efficiently.

  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(). It always returns a list.

  11. Using lubridate to Work with Dates and Times in R

    Using lubridate to work with dates and times in R: parse, format, extract components, compute durations, and handle timezones safely with the tidyverse.

  12. Handling Factors with forcats

    Handling factors with forcats in R: create, reorder, lump, and recode categorical data for statistical modeling and visualizations.