View source: R/ParameterValues2InputFiles.R
SpecificValueInFile | R Documentation |
This function provides the capability to modify input text files directly within the R environment, requering only minimal instructions. It was conceived to facilitate users to execute the calibration procedure via hydroMOPSO()
, while staying entirely within the R environment. Thus, it precludes the need for manually editing text files, eliminating undesirable coordination that could potentially lead to errors.
SpecificValueInFile(modlist)
modlist |
( |
The modlist
argument is a list with an indeterminate number of objects, which only depends on the number of modifications the user needs to make, for example, being something like modlist=list(mod_1, mod_2, mod_3,mod_4)
. Each of the ‘mod
’ objects in this list must provide the following items:
(character
)
The ID of the parameter to be modified.
(numeric
)
Numeric value to be written into the text file.
(character
)
Name of the text file that will be modified.
(numeric
)
Row number in filename
where newvalue
will be written.
(numeric
)
Starting column number in filename
where newvalue
is going to be written.
(numeric
)
Ending column number in filename
where newvalue
is going to be written.
(numeric
)
Number of decimal places used to write newvalue
into filename
.
No return value
Rodrigo Marinao Rivas ra.marinao.rivas@gmail.com, Mauricio Zambrano-Bigiarini, mzb.devel@gmail.com
hydromod
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.