check_balance: Checks the mass balance of the flows involved
Description
For each substance involved, the balance per (internal) node is inspected.
If outflow exceed inflow, or vice versa, a message is printed,
and the function returns FALSE.
Usage
check_balance(nodes, flows, tolerance = 0.01)
Arguments
nodes
data.frame containing the nodes definition
flows
data.frame containing the flows definition
tolerance
numeric specifying a tolerance. Default is 0.01 (1%)