Learn R Programming

SWTools (version 1.1.0)

WritepwtoIS: Write an input set line for a piecewise lookup table from a csv file

Description

Write an input set line for a piecewise lookup table from a csv file

Usage

WritepwtoIS(folder, csvfiles, outputfile)

Value

Nothing to the R environment. Input set lines are written to "outputfile".

Arguments

folder

Folder for where are the csv files with the lookup tables

csvfiles

vector of files to turn into an input set line. File name should be the name of the pw table in Source, including the folder name if necessary, separated by "." (see example). The first row in the file should be column names, the same as used in Source, i.e. XValue and YValue

outputfile

text file to save the lines to

Examples

Run this code
if (FALSE) {
folder<-"C:/Source/tables"
csvfiles<-c("LowerLakesOps.pw_LakeTarget.csv","Operations.pw_NA_Lock5_16p8.csv")
outputfile<-"inputset.txt"
WritepwtoIS(folder,csvfiles,outputfile)
}

Run the code above in your browser using DataLab