# NOT RUN {
SS_changepars(
dir = "C:/ss/SSv3.30.03.05_May11/Simple - Copy",
strings = c("steep", "sigmaR"), newvals = c(.4, .6)
)
## parameter names in control file matching input vector 'strings' (n=2):
## [1] "SR_BH_steep" "SR_sigmaR"
## These are the ctl file lines as they currently exist:
## LO HI INIT PRIOR PR_type SD PHASE env_var&link dev_link dev_minyr dev_maxyr
## 95 0.2 1 0.613717 0.7 0.05 1 4 0 0 0 0
## 96 0.0 2 0.600000 0.8 0.80 0 -4 0 0 0 0
## dev_PH Block Block_Fxn Label Linenum
## 95 0 0 0 SR_BH_steep 95
## 96 0 0 0 SR_sigmaR 96
## line numbers in control file (n=2):
## [1] 95 96
##
## wrote new file to control_modified.ss with the following changes:
## oldvals newvals oldphase newphase oldlos newlos oldhis newhis comment
## 1 0.613717 0.4 4 -4 0.2 0.2 1 1 # SR_BH_steep
## 2 0.600000 0.6 -4 -4 0.0 0.0 2 2 # SR_sigmaR
# }
Run the code above in your browser using DataLab