[R] difftime result for days not an integer?

Jonathan jonsleepy at gmail.com
Thu Feb 11 21:40:14 CET 2010


Anybody have an idea why I would get a non-integer value for the
number of days here?

> difftime('2004-08-05','2001-01-03',units='days')
Time difference of 1309.958 days


Would you just round off?

Best,
Jon



More information about the R-help mailing list