I have a situation where I want to perform the same manipulations to multiple R 
objects in series. I have constructed a vector () to serve as a list of the 
objects. However, my assign() assigns the object name (on[j]) as a character 
string to "temp" and not the object itself.

=======================================

fn<-c("FT1.1.01.RData","FT1.1.02.RData")

on<-c("FT1101","FT1102")

b<-1
e<-2

for (i in 1:2){

        for (j in b:e){

load(fn[j])
assign("temp",on[j])

.
.
.
rm(paste(stderr[i],".t",sep=""))
rm(temp)
rm(fn[i])
}

}

===================================

Daniel

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to