[R] rename object

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Feb 8 11:43:45 CET 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

Not absolutely sure what you are going to do, I guess either

  SimLUall2 <- SimLUall
  SimLUall <- j

or

  assign(paste("SimuLUall", j, sep=""), SimuLUall)


Uwe Ligges


> The value of j should be assigned automatically to SimLUall.
> 
> How can I achieve this?
> 
> Regards, 
> Ulrich
> 
> ______________________________________________
> R-help at 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




More information about the R-help mailing list