View source: R/ui_projection-simulation.R
project | R Documentation |
Calculate the trajectories of a network model
project(
nm,
dt = NULL,
grid_size = NULL,
at = NULL,
end = NULL,
flows = "no",
cached_ts = NULL,
cached_ee = NULL
)
nm |
A |
dt, grid_size |
Either the time step size for trajectory calculations
( |
at |
Optional, vector of time values at which the trajectory must be evaluated. |
end |
Time value for end point. If not provided, the last observation or event is used. |
flows |
Return flow values? The default is "no" and no flows are calculated. Other values are "total" (total flows summed up from beginning to end timepoint), "average" (average flows per time unit, equal to total flows divided by the projection duration), and "per_dt" (detailled flow values are returned for each interval dt of the projection). |
cached_ts, cached_ee |
Used for optimization by other functions, not for use by the package user. |
A network model object with a "trajectory"
column.
m <- aquarium_mod
m <- set_params(m, sample_params(m))
z <- project(m)
z <- project(m, flows = "per_dt")
z <- project(m, flows = "total")
z <- project(m, flows = "average")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.