Module 02 of 10

Language Fundamentals

Lessons

About This Module

Every R script, from a quick calculation to a full analysis, is built from the same small set of ideas. This module covers those building blocks: storing values in variables, the basic data types (numeric, character, logical), and the operators you use to combine and compare them. Because R is designed for data, almost everything in it works on vectors — ordered collections of values of the same type — so understanding them early makes the rest of the course much easier.

You'll then see how to control what your code does with conditional statements and loops, and how to package repeated work into your own functions. The lessons mix short, focused videos on individual concepts with longer walkthroughs that put them together in real R code.

Watch the lessons in order, then continue on to Data Structures.

Lessons

4 videos
01

Intro to R (Google Developers)

The start of Google's beginner Intro to R series — entering commands, working with vectors, variables, and arithmetic in short, focused videos.

02

Introduction to R: Vectors

DataDaft explains the vector, the most basic compound data type in R, and why so many R functions are built to operate on whole vectors at once.

03

R Programming Tutorial - Learn the Basics of Statistical Computing

freeCodeCamp's hands-on course walks through the fundamentals of R and statistical computing, putting the core language features together in practice.

04

Learn R Programming from Harvard University

Harvard CS50's introduction to programming using R, a longer course that builds up the language from the basics toward writing your own programs.