Skip to content
Prev 171798 / 398502 Next

Importing zoo object ("index contains NAs")

On Wed, 25 Feb 2009, Rob Denniker wrote:

            
Almost certainly there are no NAs in your index (although we can't say for 
sure as Gabor pointed out).
^^^
First problem: This should be %Y.
Second problem: You need header = TRUE.

Thus, I would guess that
   h <- read.zoo("gdata.txt", sep = ",", format = "%Y-%m-%d",
     header = TRUE)
should do what you want.
Z