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]]


