Hi Domenico,
If I understand correctly, you are missing a step. See also ?get
Something like this should do what you want:
for(i in 1:length(posfix)) {
matname <- paste("matX.",posfix[i], sep="") # store the filename
currently needed
thismat <- get(matname) # get the matrix matching that filename
# do whatever assignment you'd like
assign(matname, thismat) # copy thismat back into matname
}
--
Sarah Goslee
USDA-ARS
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html