rguides

Tutorial series

R Fundamentals

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

  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.

  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.

  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.

  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.

  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.

  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.

  7. Working with strings and factors in R: a tutorial

    Work with character strings and categorical factors in R. Covers string manipulation, regex, converting to factors, levels, and ordered factors.

  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.