[R] Use of variables to reference to objects

Kris Nackaerts kris.nackaerts at agr.kuleuven.ac.be
Fri Nov 22 17:22:11 CET 2002


I'm new to R and looking for a way to use a variable to reference to an 

I'm plotting several graphs on top of each other and want to do this by 
a for loop. The field I want to graph have names like a1,a2,a3, ...
I can't figure out how to get this working:

It should look like this:

but the "paste()" does not seem to work in this context.

Any help?

Kind regards,




  Minds are like parachutes, they only work when open

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list