On Sat, Oct 11, 2014 at 11:03 AM, ce <zadi...@excite.com> wrote:
>
> Dear all,
>
> I want to convert to character arrays  "2014-10:10 00:00:00" and 
> "2014-10-10:23:59:00" to an array of minutes :
>
> 2014-10:10 00:00:00
> 2014-10:10 00:01:00
> 2014-10:10 00:02:00
>
> What is the best way to do it ?
> thanks
>

Best? I don't know. My way:

minutes<-as.xts(as.POSIXct(seq(as.POSIXlt('2014-10-10
00:00:00'),as.POSIXlt('2014-10-10 23:59:00'),'min')));


-- 
There is nothing more pleasant than traveling and meeting new people!
Genghis Khan

Maranatha! <><
John McKown

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to