[R] Fast way to load multiple files

2006-08-14 Thread Peter Eiger
Hi, Instead of having to program a loop to load several workspaces in a directory, it would be nice to store the filenames in a list filelist and then to apply load to this list lapply( filelist, load) Unfortunately, although it seems that R is loading the files, the contained objects are not

Re: [R] Fast way to load multiple files

2006-08-14 Thread Berton Gunter
of the statistician is to catalyze the scientific learning process. - George E. P. Box -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Eiger Sent: Monday, August 14, 2006 1:00 PM To: r-help@stat.math.ethz.ch Subject: [R] Fast way to load multiple

Re: [R] Fast way to load multiple files

2006-08-14 Thread Prof Brian Ripley
into .GlobalEnv. Try lapply(filelist, load, envir=.GlobalEnv) which works for me. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Eiger Sent: Monday, August 14, 2006 1:00 PM To: r-help@stat.math.ethz.ch Subject: [R] Fast way to load