setParameters applies given values to reaction parameters of the model depending on the key argument.

setParameters(
  key = NULL,
  name = NULL,
  value = NULL,
  mapping = NULL,
  data = NULL,
  model = getCurrentModel()
)

Arguments

key

Identify which reaction parameter to edit by specifying it's key, as string. Also supports fragments of keys, if uniquely matching one reaction parameter.

name

Parameter is deprecated.

value

Value to set, as numeric.

mapping

Key of global quantity to map to, as string. Also supports fragments of keys, if uniquely matching one global quantity.

data

A data frame as given by getParameters which will be applied before the other arguments.

model

A model object.

Details

Use the key argument to specify which reaction parameter to modify and any of the other arguments to specify the value to set. The function is fully vectorized. If a NA value is supplied, the model value is kept unchanged.

The online article on managing model entities provides some further context.