I want to split a vector at a multiplicity of a number so giving vector c(1:100) I would like to receive vectors like:
c(1,11,21,31,41,51,61,71,81,91)
c(2,12,22,32,42,52,62,72,82,92)
.....
c(10,20,30,40,50,60,70,80,90,100)
Note that i want the vector c(1,11,21,31,41,51,61,71,81,91) to be the FIRST in the list of new vectors, because I know that split(1:100,1:100 %% 10)[1] is c(10,20,30,40,50,60,70,80,90,100) which is not what I want
EDIT The 1:100 example is just an example. In my app I want to split a vector of 256 numbers (random numbers not from 1 to 256) and divide it to 16 new vectors...