Create, modify or remove a global variable or function
macro.Rd
Macros are global variables or functions that can be used throughout your stock-and-flow model. macro()
adds, changes, or erases a macro.
Arguments
- sfm
Stock-and-flow model, object of class sdbuildR_xmile.
- name
Name of the macro. The equation will be assigned to this name.
- eqn
Equation of the macro. A character vector. Defaults to "0.0".
- doc
Documentation of the macro. Defaults to "".
- change_name
New name for macro (optional). Defaults to NULL to indicate no change.
- erase
If TRUE, remove macro from the model. Defaults to FALSE.