Description Usage Arguments Author(s) Examples
View source: R/setup_swatcal.R
A function to setup a swat calibration, building the template *.unixorig template files, and cleaning up oddities we find in the default input files. (eg file.cio has cst.cst file which appears to be a bug)
1 |
change_params |
Daniel Fuka drf28@cornell.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function(change_params){
library(operators)
for(ft in unique(change_params$filetype)){
print(ft)
files=list.files(,paste(ft,"$",sep=""))
for (file in files) {
junk%<%file
junk=gsub("\r","",junk)
file_swatcal=paste(file,".unixorig",sep="");
cat(junk,file=file_swatcal,sep="\n")
}
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.