[R] How to extract an interval of "hour:minute" type

ikuzar razuki at hotmail.fr
Tue Dec 27 15:02:58 CET 2011


Hi, 

I 'd like to know how to extract an interval of "hour:minute" type from a
column of POSIXlt POSIXct type. 
For instance: 

my_data.csv: 

4352;2011-09-02 21:30:00;3242; 
4352;2011-09-02 21:31:00;3315; 
4352;2011-09-02 21:32:00;4241; 
4352;2011-09-02 21:33:00;5394; 
... 
4352;2011-09-02 01:02:00;67; 
4352;2011-09-02 01:03:00;67; 
4352;2011-09-02 01:04:00;67; 
.... 

I loaded my_data.csv into a data.frame. 

I 'd like to select rows where times T satisfies 21:30:00<= T <=22:30:00. I
do not worry about the date. I just need  the time to select the interval 

Thanks for your help

--
View this message in context: http://r.789695.n4.nabble.com/How-to-extract-an-interval-of-hour-minute-type-tp4237144p4237144.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list