Flow Control
Learn to control the flow of R scripts using conditional if statements and loops.
We’ll often need two fundamental structures for our code: conditional statements and loops. These let us control the flow of our code such that certain sections are executed only when a specific condition indicates that they should be, or certain sections are repeated until a criterion is met.
Get hands-on with 1400+ tech skills courses.