Skip to content
Prev 336680 / 398513 Next

plyr: colvar value corresponding to max Date

Thank you A.K. and Ista. The answer that eliminates duplicated rows is
A.K.'s first solution (brilliant idea using which.max!).
The version of Ista's solution without duplicates is
ddply(data, "state", function(x) x[which.max(x$date), ])$value
Thanks again!
Dan
On Thu, Feb 13, 2014 at 8:36 AM, arun <smartpink111 at yahoo.com> wrote: