I imported a csv file with lots of columns and sections of data.
v <- read.csv2("200109.csv", header=TRUE, sep=",", skip="6", na.strings=c(""))
The file layout looks something like this:
Dataset1 time, data, ..... 0 0 0 <NA> 0 0 Dataset2 time, data, ..... 00:00 0 0 <NA> 0 0
(The headers of the different datasets are exactly the same.
Now I can build the first dataset with:
plot(as.numeric(as.character(v$Calls.served.by.agent[1:30])), type="l")
I am curious if there is a better way:
Any clues would be appreciated. Thanks.
Status update:
I have not yet found a good solution in R, but I started writing a script in Lua to split each individual time series into a separate file. Now I leave it open because I'm curious how well R will handle all of these files. I get 8 files a day.
r time-series
tovare
source share