Re: [R] help with calculating the differences between dates

2008-05-12 Thread Uwe Ligges
Tom Cohen wrote: Dear list, How can I calculate the difference in days between the eventdate and basedate in the below dataset? id basedate outcome.3 eventdate daydiff 1 1001 1999-09-28 2 1999-10-013 2 1002 1999-09-22 1 3 1003 2000-01-19

[R] help with calculating the differences between dates

2008-05-12 Thread Tom Cohen
Dear list, How can I calculate the difference in days between the eventdate and basedate in the below dataset? id basedate outcome.3 eventdate daydiff 1 1001 1999-09-28 2 1999-10-013 2 1002 1999-09-22 1 3 1003 2000-01-19 1 4