Code Organization

Functions, Lists, and Loops

It’s never too late to start organizing code! It’s a step towards cleaner scripts which not only benefit the machines that execute it but the humans who are reading and understanding the logic. We’ll go over three essentials of programming (in R) that can help us remove redundant code and efficiently process and store multiple objects. With these tools: functions, lists, and loops, your scripts can become more concise and easier to navigate.