[R] How to import time-series data

RichardSmith richardsmith404 at gmail.com
Sun Feb 12 16:52:55 CET 2012


Sorry for this very basic question. I have time-series data, laid out as a
table (in csv) like this:



That is, the first column is the sample ID, and subsequent columns are the
data at time interval in days since the start. In Excel, this is a very
normal way to lay out time-series data, but I can't find any way to work
with it in R. I want to import the data to R so I can, for example, plot the
data for each sample. If I import as a matrix or table, R renames the day
numbers to e.g. X20 instead of 20. What is the correct way to do this?

Many thanks,
Richard

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



More information about the R-help mailing list