I would like to create a vector in which each element is the i+6th element of another vector.
i+6th
For example, in a vector of length 120 I want to create an
Another trick for getting sequential pieces (beyond the seq solution already mentioned) is to use a short logical vector and use vector recycling:
foo[ c( rep(FALSE, 5), TRUE ) ]