[R] Select the last rows of when specific conditions are met.

2012-11-01 Thread mardijk
Hello, As I am new with R I am completely stuck in resolving a, no doubt, easy problem. I have a dataset with an enormous amount of rows and 17 columns. I need to know per trial and subject number if another variable (tt) exceeds a maximum. If this is true than the last 5000 rows of that specific

Re: [R] Select the last rows of when specific conditions are met.

2012-11-01 Thread mardijk
I am so sorry for the lack of clarity. I have a few subjects, every subject has done a number of trials and per trial there is a measurement per millisecond (represented in the variable tt), so every unique trial is represented in around 2500 rows. An example of data would be: Subj | Trial | t