top of page

A Tutorial on Loops in R – Usage and Alternatives

In this easy-to-follow R tutorial on loops we will examine the constructs available in R for looping, and how to make use of R’s vectorization feature to perform your looping tasks more efficiently. We will present a few looping examples; then criticize and deprecate these in favor of the most popular vectorized alternatives (amongst the very many) available in the rich set of libraries that R offers.

Read more [first published on Datacamp on July 23, 2015]

Who am I?
Carlo Fanara

Following a career in IT, I spent 20+ years in physics (MSc in Nuclear Physics, Turin, Italy, and a PhD in plasma physics, Cranfield, UK).

After several years in academia, in 2008 I moved to private companies working in R&D and, since 2014 in Data Science,

My passions include Science and Languages.

I teach programming and Data Science and occasionally blog on these matters..

Current interest: Deep Learning, IoT, Time Series, and Rare Events.

Teaching
Mind your business!
Places I visit
Follow Me
  • LinkedIn Social Icon
Search By Tags
bottom of page