This is a very clear, but also very detailed explanation of the for, while, and repeat loops along with the concept of vectorization. A great resource for beginners.
Carlo Fanara. A Tutorial on Loops in R. DataCamp blog, September 26, 2016. Available at https://www.datacamp.com/community/tutorials/tutorial-on-loops-in-r.
This page has moved to a new website.