Hello Costas,

I think you may want to re-organize the text as the following format:
"2012-05-22 16:40"

After that, you may want to use as.POSIXct("2012-05-22 16:40") to transfer
it into the format xts likes.

Hope that it helps.

Regards,
Xiaoxiao

On Fri, May 25, 2012 at 11:35 AM, Costas Vorlow <costas.vorlow@gmail.com>wrote:

> Hello,
>
> I have trouble connecting times with dates to create a "proper" time
> sequence:
>
> 5/22/2012       1640    318295
> 5/22/2012       1641    432517
> 5/22/2012       1642    328233
> 5/22/2012       1643    444692
> 5/22/2012       1644    217440
> 5/22/2012       1645    650593
> 5/22/2012       1646    207366
> 5/22/2012       1647    334881
> 5/22/2012       1648    133929
> 5/22/2012       1649    267117
> 5/22/2012       1650    179423
> 5/22/2012       1651    259668
> 5/22/2012       1652    341661
>
>
> The table above is a time sequence. The 1st column on the left is the
> date and the next column contains the time of day (1640= 4:40pm). The
> 3rd column is the price of a variable at that point in time. Hence, I
> want to convert the above table to a time series variable (xts, zoo,
> etc) of some sort. Any pointer extremely welcome ( I know this is a
> lame question)...
>
> Many thanks in advance,
>
> Costas
>
> --
>
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> |c|o|s|t|a|s|@|v|o|r|l|o|w|.|o|r|g|
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> _______________________________________________
> R-SIG-Finance@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>



-- 
Xiaoxiao Shi,
Computer Science Department & Dept. of Mathematics, Statistics, and
Computer Science
University of Illinois at Chicago,
http://www.cs.uic.edu/~xiaoxiao
xiao.x.shi@gmail.com
xshi9@uic.edu

	[[alternative HTML version deleted]]

