[R] How to create sequence of constant time interval

Suresh_FSFM suresh.ghalsasi at gmail.com
Mon Feb 16 12:14:22 CET 2009


Thank you very much for the precise response.


Regards,
Suresh


Suresh_FSFM wrote:
> 
> Dear R-Experts, 
> 
> seek your help.
> 
> There are two parts I want to deal with.
> 1) 
> I want to create a time interval of say, 30 minutes starting from
> "00:00:00" hrs
> Thus at the end, I want to create sequence:
> 00:00:00
> 00:30:00
> 01:00:00 
> 01:30:00
> ..
> ..
> 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?
> 
> 2)
> 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-interval-tp22034441p22035427.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list