Module 03 of 10

Data Structures

Lessons

About This Module

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.

Lessons

4 videos
01

Data Structures in R Programming

A beginner-friendly overview of how R organizes data, introducing vectors, lists, matrices, and data frames and when each one is used.

02

RStudio: Data Types (Vector, List, Array, Matrix, Factor, Data Frame)

Walks through the six main R data types in RStudio, creating each one and showing how they differ from one another.

03

Introduction to R Statistical Computing: Data Structures

Examples of vectors, matrices, arrays, lists, and data frames, including how to create them and pull out the values you need.

04

R Programming: Using Factors & Dataframes

Focuses on creating factors and their attributes such as levels and labels, accessing their components, and working with data frames.