Re: [R] working with zoo time index ??

From: skan <>
Date: Wed, 16 Jun 2010 04:58:40 -0700 (PDT)


Let say data are written like this:
1990-01-01 10:01:00 , 0.910
1990-01-01 10:03:00 , 0.905

Would it be ok to read it with theses lines or is better to use your way?

tmp <- read.table("demo2.txt", sep = ",") z <- zoo(tmp[, 2], as.Date(as.chron(tmp[, 1]), format = "%Y-%m-%d %H:%M:%S"))


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 Jun 2010 - 12:26:06 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 Wed 16 Jun 2010 - 13:00:32 GMT.

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

list of date sections of archive