I know many posts have already answered similar questions like mine, but I've tried to figure it out for 2 days now and it seems as if I'm not seeing the picture here...
I got this csv file looking like this:
Werteformat:                wertabh. (Q)
Werte:  
01.01.76 00:00  0,363
02.01.76 00:00  0,464
...
31.12.10 00:00  1,03
01.01.11 00:00  Lücke
I wanna create a timeline with the data, but I can't import the csv properly.
I've tried this so far:
data<-read.csv2(file, 
            header = FALSE, 
            sep = ";", 
            quote="\"", 
            dec=",", 
            col.names=c("Datum", "Abfluss"), 
            skip=2, 
            nrows=length(strs)-2, 
            colClasses=c("date","numeric"))`
But then I get
"Fehler in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  : 
  scan() erwartete 'a real', bekam 'L�cke'"
so i delete the colClasses and it works, I got rid of all unwanted rows. But: everything is in factors. So i use as.numeric
Abfluss1<-as.numeric(data$Abfluss)
Know i can calculate with Abfluss 1, but the values are totally different than in the original csv...
Abfluss1
    [1]   99  163  250  354  398  773  927  844  796  772 1010 1468 1091  955  962  933  881  844  803  772  773  803 1006  969  834  779  755
   [28]  743  739 
Where did I go wrong?! I really would appreciate some helpful hints. By the way, the files I'm working on can be downloaded here: http://ehyd.gv.at/#
Just click on one of these blue-ish triangles and download "Q-Tagesmittel"
 
     
     
    