Re: [R] Comparing two date columns

2010-02-21 Thread Newbie19_02
Dear David and Mark, Thanks very much for your help. THey were actually in date format so pmin works really well. I didn't realise that you could use it on dates that is why I was trying to coerce the date into a numeric. Thanks for both suggestions and I will remember to use a working example

Re: [R] Comparing two date columns

2010-02-21 Thread David Winsemius
On Feb 21, 2010, at 2:19 PM, Newbie19_02 wrote: Hi everyone, I have another fairly simple question. I want to take the earliest of two dates from these two date columns. I've tried converting the dates to numbers and just get a vector full of NA's. I've also tried using the chron func

[R] Comparing two date columns

2010-02-21 Thread Newbie19_02
Hi everyone, I have another fairly simple question. I want to take the earliest of two dates from these two date columns. I've tried converting the dates to numbers and just get a vector full of NA's. I've also tried using the chron function to compare the two and have been unsuccessful. I th