Control Structures

This page takes an estimated 30 minutes to complete.

Control structures in R allow you to control the flow of an R program and are very similar to the control structures that you might see in other types of programming languages.

Control Structures in R

To get a hang of control structures, watch the following videos:

swirl Exercises

As for swirl, complete swirl Lesson 8: Logic, and return here afterward.

Congratulations!

If you made it here, then congratulations! You have successfully completed this section. Move to the next portion of the guide with the arrow buttons below.

Last updated