replace_params: Change parameter values in a parameter table.

Description Usage Arguments Value

View source: R/mcmc_functions.R

Description

replace_params Update a table of MEND parameter values such as MEND2013_params, with new parameter values. This a helper function to run the mcmc and can also be helpful in a sensitivity analysis

Usage

1
replace_params(params, ptable = MENDplus::MEND2013_params)

Arguments

params

a vector of parameters, the vector must include parameter names.

ptable

a MEND parameter table that will be updated with the values from params. MEND2013_params is used as the default paraemter table. However ptable may be set to any data frame that contains the following columns.

parameter

String character of the default MEND parameters.

description

String character describing the parameter.

units

String character of the parameter units.

value

Numeric values taken from the table 2 of the Wang et al. 2013

Value

A MEND parameter table with updated params values.


kdorheim/MENDplus documentation built on Sept. 18, 2020, 6:18 p.m.