[R] How to import time-series data

RichardSmith richardsmith404 at gmail.com
Sun Feb 12 18:35:08 CET 2012

Gabor Grothendieck wrote
> Something seems to have gone wrong in the posting since we can't see
> the sample data that seems to be intended to be part of the post. 
Sorry, I posted via Nabble using the 'raw' command, which got stripped out
it seems. Here's a small sample of the data...

columns named 1,2,3,4 etc. correspond to the weight of an aphid after that
many days on that plant. I want to be able to plot the growth of all aphids
on one plot, grouped by plant.

Gabor Grothendieck wrote
> At any rate read.zoo in the zoo package can read series.  You may need to
> use the split= argument if your file defines multiple series tagged by
> an id column.  See ?read.zoo and the Reading Data in Zoo vignette
> which is online here
> http://cran.r-project.org/web/packages/zoo/index.html
> and is an entire document devoted to reading time series.  Alternately
> its available in R through the vignette("zoo-read") command.
Thanks for the link. I can't see any example in the zoo.read vignette which
looks similar. Do I need to transpose my data first, so dates are in one
column? If I do that, how do I keep the plant grouping associated with each

Many thanks

View this message in context: http://r.789695.n4.nabble.com/How-to-import-time-series-data-tp4381372p4381558.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list