[R] How to create sequence of constant time interval
tony.breyal at googlemail.com
Mon Feb 16 12:23:59 CET 2009
ahh, didn't see Gabor's solution, that works much better :-)
On 16 Feb, 10:00, Suresh_FSFM <suresh.ghals... at gmail.com> wrote:
> Dear R-Experts,
> seek your help.
> There are two parts I want to deal with.
> I want to create a time interval of say, 30 minutes starting from "00:00:00"
> Thus at the end, I want to create sequence:
> How to do so ?
> Later, I want to change the time-increment value in a variable and changing
> the value of this variable, I would like to create new sequence with that
> time increment. How to use "seq()" correctly?
> I have a date stored in one variable. Say "2009-01-01"
> How can I combine this date with each time interval in the first part? Will
> concatenate work?
> so at the end, I would like to have:
> 2009-01-01 00:00:00
> 2009-01-01 00:30:00
> 2009-01-01 01:00:00
> 2009-01-01 01:30:00
> Thank you in advance.
> View this message in context:http://www.nabble.com/How-to-create-sequence-of-constant-time-interva...
> Sent from the R help mailing list archive at Nabble.com.
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help