search for: inputparamlist

Displaying 1 result from an estimated 1 matches for "inputparamlist".

2004 Nov 11
6
scan or source a text file into a list
...t; source("Params.R") > ls() [1] "fnr" "nYears" "qe" "year0" > fnr [1] 0.3 > nYears [1] 50 > foo.list <- list(fnr = fnr, nYears = nYears) > > foo.list $fnr [1] 0.3 $nYears [1] 50 The model is then run with > CarlucR(inputParamList = foo.list, ...) I can't build inputParamList "by hand" as above because the number of initial parameters changes with the model run and this runs in a wrapper. Any thoughts? Some combination of paste with scan or parse? -Andy > version _ platform i386-pc-mingw32 arch...