SpecificValueInFile {hydroMOPSO} | R Documentation |
Straightforward modification of a value in input text file
Description
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.
Usage
SpecificValueInFile(modlist)
Arguments
modlist |
( |
Details
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:
- ParamID
(
character
)
The ID of the parameter to be modified.- newvalue
(
numeric
)
Numeric value to be written into the text file.- filename
(
character
)
Name of the text file that will be modified.- row
(
numeric
)
Row number infilename
wherenewvalue
will be written.- col.ini
(
numeric
)
Starting column number infilename
wherenewvalue
is going to be written.- col.fin
(
numeric
)
Ending column number infilename
wherenewvalue
is going to be written.- decimals
(
numeric
)
Number of decimal places used to writenewvalue
intofilename
.
Value
No return value
Author(s)
Rodrigo Marinao Rivas ra.marinao.rivas@gmail.com, Mauricio Zambrano-Bigiarini, mzb.devel@gmail.com