[datatable-help] Unable to find difference between two IDates

Harish harishv_99 at yahoo.com
Sun Jun 27 07:38:15 CEST 2010


I am unable to find the difference between two IDate objects.  The way I can get around it is to use Date.  Am I doing something wrong here?

============

a <- as.IDate( "2010-06-26" )
b <- as.IDate( "2010-06-23" )
a - b # Erroneously get "Time difference of NA days"
as.Date( a ) - as.Date( b ) # Correctly get 3 days

============


Regards,
Harish



      


More information about the datatable-help mailing list