I'm working with a list of lists (a large table).
How would I extract the first 9 rows from every 22 rows of this list?
Essentially, I'd like to drop rows 10 to 22, and then 32 to 44, and so on, repeated until the end of the data.
For example, I'd like to turn this:
data = {{1,1,1},{2,2,2},{3,3,3},{4,4,4},{5,5,5},{6,6,6},{7,7,7},{8,8,8},
{9,9,9},{10,10,10},{11,11,11},{12,12,12},{13,13,13},{14,14,14},{15,15,15},
{16,16,16},{17,17,17},{18,18,18},{19,19,19},{20,20,20},{21,21,21},
{22,22,22},{23,23,23}}
Into:
{{1,1,1},{2,2,2},{3,3,3},{4,4,4},{5,5,5},{6,6,6},{7,7,7},{8,8,8},
{9,9,9},{23,23,23} (*and so on*)}
I am a beginner at Mathametica--please forgive me if this is a repeat question.
Many thanks.

Flatten[Partition[data, 9, 22, {1, 1}, {}], 1]– swish Jun 24 '17 at 21:15...{1,},{}]tryPartition[Range[115], 9, 22,{1,1},{}]and compare toPartition[Range[125], 9, 22]– andre314 Jun 24 '17 at 21:21Partition[data, UpTo[9], 22]if we want to keep any "dangling" elements at the end of the list. – WReach Jun 24 '17 at 21:29