View source: R/setPrjParameters.R
setPrjParameters | R Documentation |
.prj
fileReplaces the existing values of a single parameter, for all HRUs, in a .prj
file.
setPrjParameters(
inputPrjFile = "",
paramName = "",
paramVals = "",
outputPrjFile = "",
quiet = TRUE,
logfile = ""
)
inputPrjFile |
Required. Name of the |
paramName |
Required. Name of parameter to set. |
paramVals |
Required. Vector containing new parameter values. There must be at least as many values in this vector as parameter values in the orginal |
outputPrjFile |
Optional. If omitted, the input |
quiet |
Optional. Suppresses display of messages, except for errors. If you are calling
this function in an R script, you will usually leave |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
If successful, returns TRUE
. If unsuccessful, returns FALSE
.
Currently, this function has only been tested on simple .prj
files, i.e. without REW Grp parameters. It might work for complex files if the REW Grp specification is included in the parameter name.
Kevin Shook
runCRHM
setPrjDates
## Not run:
result <- setPrjParameters('c:/CRHM/Bad74_Frozen.prj',
'fetch', c(1500, 1500, 1500))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.