SS_changepars {r4ss} | R Documentation |
A function to take advantage of SS_parlines that could be used to create a series of control files with different parameter values. This is used by SS_profile, but may also be useful for simulation work.
SS_changepars(dir = "C:/myfiles/mymodels/myrun/", ctlfile = "control.ss_new", newctlfile = "control_modified.ss", linenums = NULL, strings = NULL, newvals = NULL, estimate = F, verbose = T)
dir |
Directory with control file to change. |
ctlfile |
Control file name. Default="control.ss_new". |
newctlfile |
Name of new control file to be written. Default="control_modified.ss". |
linenums |
Line numbers of control file to be modified. Default=NULL. |
strings |
Strings (with optional partial matching) indicating which parameters to be run. Strings correspond to the commented parameter names included in control.ss_new. Default=NULL. |
newvals |
Vector of new parameter values. Default=NULL. |
estimate |
Vector of T/F for which changed parameters are to be estimated. Default=F. |
verbose |
More detailed output to command line. Default=T. |
Ian Taylor
## Not run: SS_changepars(dir='Y:/ss/SSv3.03a/Simple/',ctlfile='Control.SS_New', strings=c('SR_steep','SR_sigmaR'),newvals=c(.35,.6)) # [1] wrote new file to Control_Modified.SS # oldvals newvals oldphase newphase comment # 1 0.609048 0.35 4 -4 # SR_steep # 2 0.600000 0.60 -4 -4 # SR_sigmaR ## End(Not run)