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

Short, Tom TShort at epri.com
Sun Jun 27 18:07:37 CEST 2010


Harish, the "a - b" part for Idate's works correctly for me. I'll check
to see if there's a difference between my local version and what's on
R-forge.

- Tom


 

> -----Original Message-----
> From: datatable-help-bounces at lists.r-forge.r-project.org 
> [mailto:datatable-help-bounces at lists.r-forge.r-project.org] 
> On Behalf Of Harish
> Sent: Sunday, June 27, 2010 01:38
> To: datatable-help at lists.r-forge.r-project.org
> Subject: [datatable-help] Unable to find difference between two IDates
> 
> 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
> 
> 
> 
>       
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/d
atatable-help
> 


More information about the datatable-help mailing list