Re: [R] Strange behaviour when using diff with POSIXt and POSIXlt objects

2010-05-21 Thread Brian Diggs
On 5/21/2010 4:00 AM, Julian Burgos wrote: Hi Brian, This is really odd. I keep getting the NA secs answer, only by running these three lines of code in a new session. time3=strptime("2009 06 01 00 47 00",format="%Y %m %d %H %M") time4=strptime("2009 06 01 00 57 00",format="%Y %m %d %H %M")

Re: [R] Strange behaviour when using diff with POSIXt and POSIXlt objects

2010-05-21 Thread Julian Burgos
Hi Brian, This is really odd. I keep getting the NA secs answer, only by running these three lines of code in a new session. > time3=strptime("2009 06 01 00 47 00",format="%Y %m %d %H %M") > time4=strptime("2009 06 01 00 57 00",format="%Y %m %d %H %M") > diff(c(time3,time4)) Time difference of

Re: [R] Strange behaviour when using diff with POSIXt and POSIXlt objects

2010-05-20 Thread Brian Diggs
On 5/20/2010 9:59 AM, Julian Burgos wrote: Hi Jim I´m using R 2.11.0, on Windows XP. For what it is worth, it works fine for me, too. R 2.11.0 on Windows XP Pro. My gut instinct is to check that time3 and time4 are really what you think they are. If that is not it, post the results of dpu

Re: [R] Strange behaviour when using diff with POSIXt and POSIXlt objects

2010-05-20 Thread Julian Burgos
Hi Jim I´m using R 2.11.0, on Windows XP. On Thu, May 20, 2010 at 4:55 PM, jim holtman wrote: > Please provide information as to what version you are using; works fine > for me: > > > time3=strptime("2009 06 01 00 47 00",format="%Y %m %d %H %M") > > time4=strptime("2009 06 01 00 57 00",format=

Re: [R] Strange behaviour when using diff with POSIXt and POSIXlt objects

2010-05-20 Thread jim holtman
Please provide information as to what version you are using; works fine for me: > time3=strptime("2009 06 01 00 47 00",format="%Y %m %d %H %M") > time4=strptime("2009 06 01 00 57 00",format="%Y %m %d %H %M") > > diff(c(time3,time4)) Time difference of 10 mins > I have version 2.10.1 On Thu, May