Skip to content
Prev 318627 / 398506 Next

cumulative sum by group and under some criteria

res<- do.call(rbind,lapply(result,function(x) x[which.max(x$N),]))
res
#??? m1 n1 x1 y1 m n x y? N
#668? 2? 2? 2? 2 4 6 4 6 28
#144? 3? 3? 3? 3 5 5 5 5 32
A.K.
Message-ID: <1362275907.78804.YahooMailNeo@web142601.mail.bf1.yahoo.com>
In-Reply-To: <CACexUktG8k+ur9Qsb70JCVZ7zucr9g25SP0WEnj1NSwf-XW2KA@mail.gmail.com>