I tried to read my data as zoo using read.zoo function, the data include 14436 columns and the first column is in date format (yyyy-mm-dd). My code is
HFs<-read.zoo("F:/Research/Drawdown analysis/Data analysis/HF return.csv",index=1,header=TRUE,format="%Y-%m-%d")
The result is I only read the first column into R as a date index, all other values are lost. and my str(HFs) shows
‘zoo’ series from 1990-01-31 to 2010-02-28
Data: logi[1:242, 0 ]
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : NULL
Index: Date[1:242], format: "1990-01-31" "1990-02-28" "1990-03-31" "1990-04-30" "1990-05-31" "1990-06-30" ...
Could anyone help to figure out the correct way to read table as zoo into R?
Thanks
Wei