I got the below R trick to split a vector to equal-sizes and overlapping chunks by stating the chunk size to be scalar among other things stated (in the R
R