I'm not sure if there's a good way to do what I'm hoping to do, but I have the following situation:
I have a data file which is the result of collecting measurements every second. There's a timestamp column, a status column, and then all my data columns.
There's three different possible entries in the status column, "RAMP", "WAIT", and "READ". The general ordering of data by time results in, say, about 20 rows of "RAMP" followed by 85 rows of "WAIT" followed by 9 rows of "READ", which then repeats a dozen times. My regions of interest, which I would like to select, are the last 30 rows within each section labeled as "WAIT".
Obviously, it's extremely simple to select all "WAIT" rows, or the last 30 rows of the entire file, but I can't figure out how to select only the last 30 of each section.
Is there a good way of solving this?