Help on - Loop - argument is of length zero

It would help everyone if you provide a reprex - FAQ: What's a reproducible example (`reprex`) and how do I do one?
This will allow us actually solve the problem you have.