DocJon / pbs-admb

Automatically exported from code.google.com/p/pbs-admb
0 stars 0 forks source link

Function to loop through data files #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Following a suggestion by Saang-Yoon Hyun, design an R function that will 
perform multiple runs of a single ADMB executable applied to all data 
files in the current working directory (cwd). Output should be a matrix 
with as many rows as data files. Each row should contain estimates and 
standard deviations of all model parameters.

I sent the attached file to Saang-Yoon. The line

fnames = shell("dir /b *.dat",intern=T)

would give a vector of all data file names in the cwd (for Windows).

Original issue reported on code.google.com by schnu...@shaw.ca on 12 Jul 2009 at 11:44

Attachments: