Displaying 1 result from an estimated 1 matches for "bid_hsi".
2010 Dec 06
1
as.xts error
...The following is the code and result:
a<-read.csv("price.csv")
a$Date<-as.POSIXct(a$Date)
str(a)
'data.frame': 15637 obs. of 2 variables:
$ Date : POSIXct, format: "2010-01-04 09:45:01" "2010-01-04 09:45:02"
"2010-01-04 09:45:03" ...
$ bid_hsi: int 21850 21864 21864 21867 21859 21849 21849 21850 21854 21853
...
head(a)
Date bid_hsi
1 2010-01-04 09:45:01 21850
2 2010-01-04 09:45:02 21864
3 2010-01-04 09:45:03 21864
4 2010-01-04 09:45:04 21867
5 2010-01-04 09:45:05 21859
6 2010-01-04 09:45:06 21849
p<-as.xt...