Hi
thanks

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"))

regards
-- 
View this message in context: 
http://r.789695.n4.nabble.com/working-with-zoo-time-index-tp2255804p2257222.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to