[R] collaspe into a name
hodgess at uhddx01.dt.uh.edu
Fri Apr 6 18:41:06 CEST 2001
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.
There is something that I can do (Maybe with paste and assign)
bx <- paste("x",z,sep=""))
#Not right, but this is the example.
R version 1.2.2 for Windows
Could someone please help?
Thanks in advance!
Erin M. Hodgess, Ph.D.
Department of Computer and Mathematical Sciences
University of Houston - Downtown
One Main Street
Houston, TX 77002
e-mail: hodgess at uhddx01.dt.uh.edu
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