Re: [R] read.zoo problem reading in date time

From: Charilaos Skiadas <>
Date: Mon, 03 Mar 2008 11:28:45 -0500

On Mar 3, 2008, at 11:12 AM, stephen sefick wrote:

> x<-read.zoo("SC2.csv", sep="," , format="%m%m/%d%d/%y%y%y%y %h%h:%m%
> m")
> #Error in read.zoo("SC2.csv", sep = ",", format =
> "%m%m/%d%d/%y%y%y%y %h%h:%m%m") :
> index contains NAs Error message

You need header=TRUE in there, since your dataset has a header.

> what am I doing wrong SC2.csv is a comma seperated file. The above
> data is right out out of the csv file, which is more like 30,000 rows.
> There are some NA for all of the variables except DateTime for a week
> here and a week there, but I can not find any missing dates.
> thanks
> stephen

Haris Skiadas
Department of Mathematics and Computer Science Hanover College mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Mar 2008 - 16:38:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 17:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive