Skip to content
Prev 309313 / 398506 Next

changing date by +/- days

I try to use difftimes as much as possible.  For example,

oneday <- as.difftime( 24, units="hours" )
sometime - 10 * oneday

You might also find the lubridate package useful.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
"chuck.01" <CharlieTheBrown77 at gmail.com> wrote: