Writes a SWAP main file from the passed parameter dataframe, and the passed path
to the tables stored as .csv from the parse_swap_file()
function. The SWAP
main file will be written to the location specified by outpath
.
write_swap_file(parameters, table_path, outpath, verbose = F)
dataframe of project parameters as created by parse_swap_file()
(dataframe)
path of project tables as created by parse_swap_file()
(string)
path where to save the swap file (string)
print status? (flag)
Returns path of written file
This function currently is only intended for the SWAP main file, but will be expanded to handle the other SWAP input files over time.