Loop Functions

This page takes an estimated 1 hour to complete.

Loop Functions in R

Loop functions are some of the most powerful functions in R. They are very easy to use, especially in an interactive setting, and make it possible do to a lot of work while writing less code.

To start learning about loop functions, watch the following videos from Coursera, and return here afterward:

These are the last videos from Coursera in this guide. However, you are encouraged to continue the course and finish it if you so choose.

swirl Exercises

To practice everything you just learned about loop functions, complete the following swirl lessons:

  1. swirl Lesson 10: lapply and sapply

  2. swirl Lesson 11: vapply and tapply


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