[R] how to shift a chron timestamp by 6:30 hours

2011-07-28 Thread Maciej Hoffman-Wecker
Dear help list, I have a timestamp in as a chron object: (x - chron(dates = c(12/02/11, 22/11/11), + times = c(07:30:00, 04:00:00), + format = c(dates = d/m/y, times = h:m:s))) [1] (12/02/11 07:30:00) (22/11/11 04:00:00) Now I want to shift the timestamp by 06:30

Re: [R] how to shift a chron timestamp by 6:30 hours

2011-07-28 Thread Jeff Newmiller
Create a difftime object and subtract it from your chron vector. --- Jeff Newmiller The . . Go Live... DCN:jdnew...@dcn.davis.ca.us Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer

Re: [R] how to shift a chron timestamp by 6:30 hours

2011-07-28 Thread David Winsemius
On Jul 28, 2011, at 9:37 AM, Maciej Hoffman-Wecker wrote: Dear help list, I have a timestamp in as a chron object: It would have been courteous to put in: library(chron) (x - chron(dates = c(12/02/11, 22/11/11), + times = c(07:30:00, 04:00:00), + format = c(dates

Re: [R] how to shift a chron timestamp by 6:30 hours

2011-07-28 Thread Gabor Grothendieck
On Thu, Jul 28, 2011 at 9:37 AM, Maciej Hoffman-Wecker maciej.hoffman-wec...@bioskin.de wrote: Dear help list, I have a timestamp in as a chron object: (x - chron(dates = c(12/02/11, 22/11/11), +             times = c(07:30:00, 04:00:00), +             format = c(dates = d/m/y, times =