[R] date calculation

Shi, Tao shidaxia at yahoo.com
Sat Oct 30 01:55:39 CEST 2010


Hi list,

Could someone explain to me why the following result is not a integer?


> difftime(strptime("24NOV2004", format="%d%b%Y"), strptime("13MAY2004", 
>format="%d%b%Y"), units="days")
Time difference of 195.0417 days

I'm using R2.12.0 on WinXP.

Thanks!

...Tao



More information about the R-help mailing list