I have an R dataframe sorted by the first value.
There are many different rows with each first value.
I want to keep the first 200 rows with each first value, and remove all the others.
So for example if I start with 300 "1 whatever..." rows and 400 "2 whatever..." rows, what I want is 400 rows: the first 200 "1" rows, then the first 200 "2" rows.
Thanks in advance...