I have a vector of character type which has all the list of names.
So I\'m looping through each name and peforming some actions. This loop is not based on the index/leng
For variety:
names <- c("name1", "name2") for(i in seq_along(names)){ print(i) }
seq_along is a fast primitive, and IMO slightly sweeter syntactic sugar.
seq_along