Re: [R] Data read as labels

2012-05-18 Thread barb
that´s a success. "Das ist ein Erfolg". :) Maybe you had that in your german lessons, too ;) So if you are still interested in learning our language, feel free to ask me. I really learned a lot in this forum, so i am always happy to be able to give something back -- View this message in context

Re: [R] Data read as labels

2012-05-15 Thread David Winsemius
On May 15, 2012, at 11:13 AM, barb wrote: Hey David, i tried all this - it doesn´t work :( Sadder and less informative words were never written! Learn to express in natural language or in code what you were expecting rather than use the phrase "doesn't work" which can mean one of an alm

Re: [R] Data read as labels

2012-05-15 Thread Rui Barradas
Hello, Your data.frame has some noise in the last two rows. See if this works. #--- this is your code --- spec <- "EU2001" part1 <- "http://www.bundesbank.de/statistik/statistik_zeitreihen_download.php?func=directcsv&from=&until=&filename=bbk_"; part2 <- "&csvforma

Re: [R] Data read as labels

2012-05-15 Thread barb
Hey David, i tried all this - it doesn´t work :( file<-read.csv2(tmp,sep=";",skip="5") # or file<-read.csv2(tmp,sep=";",skip="5",stringsAsFactors=FALSE)a<-(relevant<-file[,2]) clean <- as.numeric(levels(a))[as.integer(a)] clean<-as.numeric(as.character(a)) i often use noquote and strsplit and

Re: [R] Data read as labels

2012-05-14 Thread David Winsemius
On May 14, 2012, at 11:23 AM, barb wrote: Hey David, thanks for your fast reply, i really appreciate that you answer so many posts. Unfortunately it´s not that easy. Try to operate with the output: e.g file<-read.csv2(tmp,sep=";",skip="5") a<-(relevant<-file[,2][1]) a*5 # or as.numeric(re

Re: [R] Data read as labels

2012-05-14 Thread Krzysztof Mitko
On Mon, May 14, 2012, at 02:33, barb wrote: > Hey guys, > > i have a strange problem reading a .csv file. > Seems not to be covered by the usual read.csv techniques. > > The relevant data i want to use, seems to be saved as the label of the > data > point. > Therefore i can not really use it

Re: [R] Data read as labels

2012-05-14 Thread barb
Hey David, thanks for your fast reply, i really appreciate that you answer so many posts. Unfortunately it´s not that easy. Try to operate with the output: e.g file<-read.csv2(tmp,sep=";",skip="5") a<-(relevant<-file[,2][1]) a*5 # or as.numeric(relevant<-file[,2][1]) a is saved in the worksp

Re: [R] Data read as labels

2012-05-14 Thread David Winsemius
On May 14, 2012, at 5:33 AM, barb wrote: Hey guys, i have a strange problem reading a .csv file. Seems not to be covered by the usual read.csv techniques. The relevant data i want to use, seems to be saved as the label of the data point. Therefore i can not really use it spec<-"EU2001" p