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 in html format.
You can find an earlier version of this page on my blog.