Tutorials

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

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