When you work with data that barely fits in your computer’s memory, every line of R code matters. Writing code that is fast and lean with memory isn’t just nice — it’s the difference between an analysis that finishes in seconds and one that crashes your machine. This chapter shows you how to write R code that is both quick and memory‑friendly, so you can handle large datasets without frustration.