I want R script to split a parent vector (1 to n) to overlapping sub-vectors with equal and constant length. In that case,
R
vector
overlapping sub-vectors
equal and constant length