Tutorials

Step-by-step series to learn R from scratch.

Data Viz with R

ggplot2

machine-learning

machine-learning-series

purrr

r

R for Reporting

R for Statistics

R For Statistics

R Fundamentals

1

Installing R and RStudio

A step-by-step guide to installing R and RStudio on Windows, macOS, and Linux, with instructions for verifying your installation and writing your first R code.

8 min read · beginner
2

R Basics: Vectors and Types

Learn about R's fundamental data structure—vectors—and understand the different atomic types in R: numeric, integer, character, and logical.

12 min read · beginner
3

Data Frames and Tibbles

Learn to create, manipulate, and transform data frames and tibbles in R—the essential structures for working with tabular data in R.

12 min read · beginner
4

Functions and Control Flow in R

Learn how to write custom functions, control program flow with if-else statements, and use loops for repetitive tasks in R.

15 min read · beginner
5

Importing and Exporting Data in R

Learn how to read and write data files in R, from basic CSV handling to Excel files and beyond.

12 min read · beginner
6

Lists and Environments in R

Learn how to create and manipulate lists, understand R environments, and master the scoping rules that power your R programs.

10 min read · beginner
7

Strings and Factors in R

Learn how to work with character strings and categorical data (factors) in R — covering string manipulation, converting to factors, and best practices.

12 min read · beginner
8

Error Handling in R

Learn how to handle errors and exceptions in R using tryCatch, base R warning functions, and the purrr safely family for functional programming.

12 min read · beginner

R Machine Learning

r-bayesian-stats

r-data-visualization

r-for-reporting

r-machine-learning

r-package-development

r-spatial-analysis

r-text-mining

r-web-development

Shiny Apps

tidyr

tidyverse

Tidyverse Workflow

1

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.

10 min read · beginner
2

Data Manipulation with dplyr

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

12 min read · beginner
3

Reshaping Data with tidyr

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

12 min read · beginner
4

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.

10 min read · beginner
5

String Manipulation with stringr

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

12 min read · beginner
6

Functional Iteration with purrr

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

18 min read · intermediate
7

Working with Dates using lubridate

A comprehensive guide to parsing, manipulating, and performing calculations with dates and times in R using the lubridate package.

12 min read · beginner
8

Handling Factors with forcats

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

12 min read · beginner

writing-r-packages