Re: [R] Automatizing Simulation in R

2009-11-12 Thread Don MacQueen
I often use the paste() and assign() approach that David suggested. Another approach is to read into R a vector of file names and then loop over that vector. Along the lines of: infiles <- list.files(pattern='data*.dat') dlist <- list() length(dlist) <- length(infiles) names(dist) <- infiles f

Re: [R] Automatizing Simulation in R

2009-11-12 Thread David Winsemius
On Nov 12, 2009, at 8:42 AM, Jeff Harring wrote: I have a question regarding automatizing simulation runs in R... I have 500 external data sets for a simulation study that I would like to bring into R to analyze. They have the names data1.dat, data2.dat, ..., dataN.dat Is there a way