Control Flow, Iteration, and Functions in R

This is the third course in our Data Analyst in R path. In it, you'll build on the R programming skills you learned in the first two courses as you start perform more complicated operations in R.

In this course, you'll learn about control flow (including if-else statements) and conditionals. Then, you'll move into learning about functions and functional programming. 

You'll also learn about iteration, when and why you might choose iteration over vectorization, and how to write for loops and while loops in R.

As you learn these new R programming skills, you'll be writing your own code to practice them right in your browser window. And you’ll learn all of this while working with real-world data, much as you would for a real data science project.

At the end of the course, you'll start working on a two-part project that will walk you through building an efficient, reproducable data analysis workflow using R and R Studio.

By the end of this course, you'll be able to:

  • Learn about control flow, iteration, and functional programming in R.
  • Write if-else statements, for and while loops, and much more.
  • Start building a more in-depth data analysis project workflow using R.

Learn by coding!

Get started today.

By creating an account you agree to accept our terms of use and privacy policy.

Intermediate R Programming

Control Flow in R

Learn about control flow, including if-else statements, in R.

Functions in R

Learn about functions and funtional programming in R.

Iterations in R

Learn about for and while loops in R, and when you might want to use iteration.

Guided Project: Creating an Efficient Data Analysis Workflow 

Begin building an efficient data analysis project workflow using your R programming skills and R studio.