1 2 3 4 5 |
dr |
DRWmodel S4 class object;
results from |
type |
|
plot |
logical [1]; whether to plot the results using plot.DRWbalance before returning |
t |
|
... |
|
detail |
logical [1]; whether to subdivide inputs, outputs and active mass |
col |
character [4]; colours to use for inputs, outputs, active mass and imbalance respectively |
balance; |
a DRWbalance object, the result of |
DRWbalance
returns a list of class "DRWbalance", with elements:
$in_
numeric [nts - 1, 1]: input mass or flux from sources by
time step
$out
numeric [nts - 1, 8]: output mass or flux to sinks,
degradation or out of the model active region by time step; these
values are negative
$Dactive
numeric [nts - 1, 2]: change in or rate of change of
plume and sorbed mass by time step
$active
(only if type == "mass"
) numeric [nts, 2]: mass in
plume and sorbed by time step
$imbalance
numeric [nts - 1]: unaccounted for mass; should be 0
apart from machine imprecision
Each element has informative column names (try colnames(bal$out)
for example). nts
means the number of time steps in the DRW
model. Because time step 1 of a DRW model represents the initial state,
fluxes and changes of mass are between the time steps, which is why the
in_
, out
and Dactive
matrices have one less row
than the number of time steps.
The result is returned invisibly if plot == TRUE
.
plot.DRWbalance
returns NULL
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.