Act fast, special offers end soon! Up to $294 is savings when you get Premium today.
Get offer codes

Iterations in R: Another Way to Write for Loops

Hi, everyone! I have a doubt regarding the mentioned lesson of Iterations in R mission (link: Learn data science with Python and R projects).

I wanted to see what would happen if I tried to use a for loop to loop over the indices using an empty vector instead of a vector of zeroes.

The instrutions said the code wouldn’t, but it did. Can you exactly do this or is it a bug? :thinking: