Data analysis in R starts with knowing how your data is stored. This module covers the core data structures R gives you: vectors for ordered values of one type, factors for categorical data, matrices and arrays for numbers arranged in two or more dimensions, lists for mixing different kinds of objects, and data frames — the table-like structure at the center of almost every real R analysis.
You'll learn how to create each structure, how to access and subset its elements by position, name, or condition, and how to choose the right one for the job. These skills carry directly into the next modules, where you'll import real datasets and reshape them with packages like dplyr.
Watch the lessons in order, then continue on to Importing & Cleaning Data.
A beginner-friendly overview of how R organizes data, introducing vectors, lists, matrices, and data frames and when each one is used.
Walks through the six main R data types in RStudio, creating each one and showing how they differ from one another.
Examples of vectors, matrices, arrays, lists, and data frames, including how to create them and pull out the values you need.
Focuses on creating factors and their attributes such as levels and labels, accessing their components, and working with data frames.