Re: [R] DateTime Math in R - POSIXct

2011-05-31 Thread Jeff Newmiller
"1970-01-01") > dateP2 [1] "2011-05-22 18:45:00 MDT" > # Where does the extra hour come from? From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Tuesday, May 31, 2011 00:43 To: galen.a.mo...@gmail.com; 'David Winsemius' Cc: r-help@r-project.org Subject: R

Re: [R] DateTime Math in R - POSIXct

2011-05-31 Thread Galen Moore
eP2 <- as.POSIXct(dateN, origin="1970-01-01") > dateP2 [1] "2011-05-22 18:45:00 MDT" > # Where does the extra hour come from? From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Tuesday, May 31, 2011 00:43 To: galen.a.mo...@gmail.com; 'David Winsemius'

Re: [R] DateTime Math in R - POSIXct

2011-05-30 Thread Jeff Newmiller
rect tz in my first instance below, yet dateP2 <- as.POSIXct(dateN, origin="1970-01-01", tzone="MDT") decides to revert to GMT in my second instance below? Thanks, Galen -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, May 30

Re: [R] DateTime Math in R - POSIXct

2011-05-30 Thread Galen Moore
:31 To: galen.a.mo...@gmail.com Cc: r-help@r-project.org Subject: Re: [R] DateTime Math in R - POSIXct On May 30, 2011, at 10:20 PM, Galen Moore wrote: > Greetings - > > > > I'm battling POSIXct, as per the code below. My input is actually an > XL file, but the weird re

Re: [R] DateTime Math in R - POSIXct

2011-05-30 Thread Galen Moore
.au] Sent: Monday, May 30, 2011 21:22 To: galen.a.mo...@gmail.com; r-help@r-project.org Subject: RE: [R] DateTime Math in R - POSIXct Perhaps because the timezone is specified as a character string and not a date-time object complete with timezone. >From the help filr for as.POSIXct.nume

Re: [R] DateTime Math in R - POSIXct

2011-05-30 Thread Bill.Venables
ot; Note the coercion. Bill Venables. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Galen Moore Sent: Tuesday, 31 May 2011 12:20 PM To: r-help@r-project.org Subject: [R] DateTime Math in R - POSIXct Greetings - I'm

Re: [R] DateTime Math in R - POSIXct

2011-05-30 Thread David Winsemius
On May 30, 2011, at 10:20 PM, Galen Moore wrote: Greetings - I'm battling POSIXct, as per the code below. My input is actually an XL file, but the weird results below correctly model what I am seeing in my program. Before I punt and use lubridate or timeDate, could anyone please h

[R] DateTime Math in R - POSIXct

2011-05-30 Thread Galen Moore
Greetings - I'm battling POSIXct, as per the code below. My input is actually an XL file, but the weird results below correctly model what I am seeing in my program. Before I punt and use lubridate or timeDate, could anyone please help me understand why POSIXct forces my variable back to