Skip to content
Prev 336595 / 398513 Next

plyr: colvar value corresponding to max Date

ddply(data, "state", function(x) x[x$date == max(x$date), ])$value
On Thu, Feb 13, 2014 at 11:13 AM, Dan Murphy <chiefmurphy at gmail.com> wrote: