Skip to course content
Free R data course

R Foundations for Data Analysis

Module 02 Summary

What this module established

R works on whole vectors, which removes most loops and introduces one hazard: recycling repeats a shorter vector silently when the lengths divide evenly, so a length mismatch can produce a plausible wrong answer with no warning at all.

Carry forward

Before moving on

Move on when you can explain why sum(scores > 80) returned NA and give two different correct fixes.