rguides

Tutorial series

R Fundamentals

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

  1. Installing R and RStudio on Windows, macOS, and Linux

    Step-by-step guide for installing R and RStudio on Windows, macOS, and Linux. Verify your installation, write first R code, and set up packages.

  2. Working with Vectors and Atomic Types in R

    Master working with R vectors and atomic types — numeric, integer, character, logical — plus vectorized operations, type coercion, and subsetting.

  3. Data Frames and Tibbles in R: A Complete Tutorial

    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

    R functions control how code executes: write custom logic, use if-else for decisions, and handle repetition with loops for cleaner data analysis.

  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. Working with data means getting it in and out of R.

  6. R Lists and Environments: A Complete Tutorial

    Master R lists and environments: create nested structures, understand lexical scoping, and use environments for namespaces and mutable state in your R code.

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

    Working with strings and factors in R — manipulate text, use regular expressions, create categorical factors with custom levels, and build ordered factors.

  8. Error Handling in R, Learn how to handle errors and exceptions

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