Re: [R] selecting certain rows from data frame

2010-12-15 Thread Hrithik R
Hi Steven and Peter, I apologise for not providing the code for the sample I now realise what I need may be a bit tricky... my dataframe has hundreds of IDs in which case Steven's solution will not be optimum Peter's solution seems best, but how do I reverse this and use it to select the dataf

Re: [R] selecting certain rows from data frame

2010-12-15 Thread Hrithik R
Hi Steven and Peter, I apologise for not providing the code for the sample I now realise what I need may be a bit tricky... my dataframe has hundreds of IDs in which case Steven's solution will not be optimum Peter's solution seems best, but how do I reverse this and use it to select the dataf

[R] selecting certain rows from data frame

2010-12-14 Thread Hrithik R
Hi, if I have a dataframe such that ID Time  Earn 1        1        10 1        2        50 1        3        68 2    1    40 2    2    78 24   88 3    1    50 3    2    60 3    3    98 4    1    33 4    2    48 44