Learn R Programming

sdbuildR (version 2.0.0)

summary.simulate_stockflow: Summarise simulation results

Description

Returns a data frame with per-variable summary statistics (min, mean, max, and final value) over the simulated time range.

Usage

# S3 method for simulate_stockflow
summary(object, ...)

Value

A data.frame with columns variable, min, mean, max, final.

Arguments

object

A simulation result of class simulate_stockflow

...

Additional arguments (unused)

See Also

print.simulate_stockflow(), simulate.stockflow()

Examples

Run this code
sfm <- stockflow("SIR")
sim <- simulate(sfm)
summary(sim)

Run the code above in your browser using DataLab