This function changes a SWAP parameter. It is passed a parameter dataframe as parsed by parse_swap_file() as well as the name of the parameter which should be modified, along with its value.

change_swap_parameter(param, name, value, verbose = F)

Arguments

param

Parameter set (dataframe)

name

name of the parameter to change (string)

value

value the parameter should take on (string)

verbose

print status? (flag)

Value

This function returns the same dataframe it was passed, with the parameter value altered.

Details

Important: this function only works for single parameters. Any values stored as "tables" in the SWAP input file will need to be modified in another way (WIP)

Note: the value of the parameter should be passed as a string in the correct format (ie. correct decimal place), as SWAP/FORTRAN is very particular about this