Is it possible to change to vary the interval size in a for loop?
Such as, the first loop looks at the first 3 values, and then the next loops looks at the next 13 values, and the next loop looks at the next 6 values... etc.
for (i in 1:1000, by = n)
Where n
is not a constant number.