Re: [R] DF grouping

2012-11-26 Thread karthicklakshman
Hello Petr Savicky, hello all, I have a situation similar to the previous one, I need to group a data.frame in a specific way, col1 col2 score 2873 3192 319 4268 4451 183 5389 5534 145 6622 10622 4000 12631 17853 5222 20408 20615 207 21595 21838 243 23121 2313918 the out put

Re: [R] DF grouping

2012-02-12 Thread karthicklakshman
Dear Petr Savicky, Thank you very much for the solution. your script really worked for my DF, and yes as per your guess , its always ---> DF[i, "col2"] == DF[i+1, "col1"] Regards, karthick -- View this message in context: http://r.789695.n4.nabble.com/DF-grouping-tp4381310p4381646.html Sent fr

Re: [R] DF grouping

2012-02-12 Thread Petr Savicky
On Sun, Feb 12, 2012 at 07:07:26AM -0800, karthicklakshman wrote: > Hello Members, > > I need to group a data.frame in a a specific way, like shown below, > > DF raw is like this, > > id col1 col2 score > 1 A B 40 > 2 B C 55 > 3 C D 4000 > 4 D E1