Skip to content

cumulative sum by group and under some criteria

1 message · arun

#
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.