Re: [R] Extracting rows with latest date from a data frame

2012-01-22 Thread dthomas
Thanks Petr, one line of code - awesome. -- View this message in context: http://r.789695.n4.nabble.com/Extracting-rows-with-latest-date-from-a-data-frame-tp4305651p4319303.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proj

Re: [R] Extracting rows with latest date from a data frame

2012-01-17 Thread Petr PIKAL
Hi > Hi, > > I have a list of unique patient IDs which I want to run against a dataframe > of unique patient IDs with dates. There are multiple date instances against > unique IDs. The end result I wish is that I have a list of IDs (which are > unique) with the latest date. I have begun with

[R] Extracting rows with latest date from a data frame

2012-01-17 Thread dthomas
Hi, I have a list of unique patient IDs which I want to run against a dataframe of unique patient IDs with dates. There are multiple date instances against unique IDs. The end result I wish is that I have a list of IDs (which are unique) with the latest date. I have begun with using test data (but