Hi
I'll ask in a different way...

I have all this in a file.txt

1990-01-01 10:00:00 ,  0.900          #  element 1
1990-01-01 10:01:00 ,  0.910          #  element 2
1990-01-01 10:03:00 ,  0.905          #  element 3
1990-01-01 10:04:00 ,  0.905          #  element 4
1990-01-01 10:05:00 ,  0.890          #  element 5
..................................................................
2000-12-30 20:00:00 ,  11.233        # element 3323232

How do I loop through the index? first element 1, then element 2, then the
third...
How do I extract the day or the hour or the minutes from an element from the
index(element n)?
-- 
View this message in context: 
http://r.789695.n4.nabble.com/working-with-zoo-time-index-tp2255804p2257591.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