collaspe into a name
What are x1 and x2? Maybe use switch()? Try help(switch). Not completely clear what you want to do.
At 11:41 AM 4/6/01 -0500, you wrote:
Dear R People: Suppose I have the following: z <- sample(1:4) if(z == 1) bx <- x1 if(z == 2) bx <- x2 and so on.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._