[R] get latest dates for different people in a dataset

Tan, Richard RTan at panagora.com
Sat Jan 24 00:43:51 CET 2015


Hi,

Can someone help for a R question?

I have a data set like:

Name    CheckInDate      Temp
John      1/3/2014              97
Mary     1/3/2014              98.1
Sam       1/4/2014              97.5
John      1/4/2014              99

I'd like to return a dataset that for each Name, get the row that is the latest CheckInDate for that person.  For the example above it would be

Name    CheckInDate      Temp
John      1/4/2014              99
Mary     1/3/2014              98.1
Sam       1/4/2014              97.5


Thank you for your help!

Richard


	[[alternative HTML version deleted]]



More information about the R-help mailing list