I would like to create a vector in which each element is the i+6th
element of another vector.
For example, in a vector of length 120 I want to create another vector of length 20 in which each element is value i, i+6, i+12, i+18...
of the initial vector, i.e. I want to extract every 6th element of the original.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…