I already posted a related question (Create a new vector by appending elements between them in R). I would like to know whether it's possible to increment a vector with a specified number of elements (like accumulate() from purr package).
In fact, I'm working with a vector of 16000 genes. I'm trying to write a for loop where at each iteration, 100 genes should be knocked out from the data set and proceed some clustering analysis (clustering with 16000 genes, clustering with 15900 genes, clustering with 15800 genes, etc.) My idea is to make a list from the vector where each element of it is a vector of genes incremented by 100 (first element 100 genes, second element 200 genes, third element 300 genes and the 160th element, the total 16000 genes). With accumulate (), I can increment one by one only between two following elements. Is there a way to make it increment 100 by 100?
Thank you all once again for your help!