Skip to content
Prev 42792 / 398506 Next

A language technical question.

Johan Lindberg wrote:

            
For sure you mean
   infiles <- dir(pattern = "\\.RData")
This won't work. I'd try
   for(i in 1:length(infiles))
or much better:
   for(i in seq(along = infiles))
Whatever saveLoadReference is ... try
   assign(paste("kalle", i, sep=""), saveLoadReference)

Please note that it might be a good idea to use a list "kalle" with 
elements corresponding to the different "saveLoadReference" objects. So 
that you don't mess up you workspace with many objects ....

Uwe Ligges