Skip to content
Prev 8555 / 15274 Next

xts NA date for

Hmmm works fine for me.

xts(1, order.by = strptime("04/05/87 2:00",format="%m/%d/%y %H:%M"))

[,1]
1987-04-05 02:00:00 ? ?1

Maybe an old version of xts? I am using xts version 0.8-0. (you can check that with?sessionInfo().)

Regards,
?
Wolfgang Wu




----- Urspr?ngliche Message -----
Von: Dan Potter <arsanalytica at gmail.com>
An: r-sig-finance at r-project.org
Cc: 
Gesendet: 12:51 Freitag, 23.September 2011 
Betreff: [R-SIG-Finance] xts NA date for

Hello All,
I am new to R and having an issue with xts when I try and used it with
certain dates and times in 1987.

Example
[,1]
1987-04-05 12:00:00 1

# This date and time do not work
[,1]
<NA> 1

I don't think the issue is with strptime since it seems to work fine
on the offending date and time, i.e.
[1] "1987-04-05 02:00:00"

Any suggestion or work arounds would be appreciated.

Thanks,
Dan

_______________________________________________
R-SIG-Finance at 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.