Hi Ulrich
See: ? assign and ? paste
with something like: > assign(paste("SimLUall",j,sep=""),SimLUall)
Note though that if you are planning some simulations, many guRus would say that you should use a list.
nsimul <- 100 simOut <- vector(mode="list",length=nsimul) names(simOut) <- paste("simu",1:nsimul,sep="")
for (i in 1:nsimul){ ### simOut[i]<- resultsofsimulation.i ### }
Eric
At 11:22 8/02/2005, Ulrich Leopold wrote:
Dear list,
I would like to rename an object as follows:
SimLUall <- matrix(c(0,1,0,0, 1,0,0,0, 0,0,1,0, 0,0,0,1),nrow=4, ncol=4)
j <- 2
SimLUall2 <- SimLUall and j
The value of j should be assigned automatically to SimLUall.
How can I achieve this?
Regards, Ulrich
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Eric Lecoutre UCL / Institut de Statistique Voie du Roman Pays, 20 1348 Louvain-la-Neuve Belgium
tel: (+32)(0)10473050 [EMAIL PROTECTED] http://www.stat.ucl.ac.be/ISpersonnel/lecoutre
If the statistics are boring, then you've got the wrong numbers. -Edward Tufte
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html