"Biedermann, Jürgen" wrote: > > Perfekt! > > So, the code below does, what I want it does. > > for (m in 1:AnzRat) { > Daten_akt <- eval(parse(text=paste("Daten",m,"_akt",sep=""))) > ... > ... > assign(paste("Daten",m,"_akt",sep=""),Daten_akt) > } >
You may want to consider replacing eval(parse()) with a call to get(). eval(parse()) does the job- but it's like using a sledgehammer when you have a tack hammer available that will work just fine. -Charlie ----- Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://n4.nabble.com/How-to-use-the-paste-function-to-create-an-already-used-variable-tp1680508p1690769.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.