that's very good , thanks. 

-----Original Message-----
From: "John McKown" [[email protected]]
Date: 10/11/2014 12:20 PM
To: "ce" <[email protected]>
CC: "r-help" <[email protected]>
Subject: Re: [R] xts array in minutes ?

On Sat, Oct 11, 2014 at 11:03 AM, ce <[email protected]> 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

______________________________________________
[email protected] 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