Learn R Programming

medfateland (version 2.8.1)

simulation_summary: Summarizes spatial simulation results

Description

Creates spatial objects containing summaries of simulations

Usage

simulation_summary(object, summary_function, ...)

Value

An object of class sf, with the following two elements:

  • geometry: Spatial geometry.

  • id: Stand id, taken from the input.

  • summary: A list of model output summaries for each simulated location.

Arguments

object

An object of class 'sf' simulation results (e.g. the result of calling spwb_spatial).

summary_function

The summary function to be executed on simulation results (see details).

...

Additional parameters to the summary function.

Author

Miquel De Cáceres Ainsa, CREAF.

Details

The function supplied should take as input an object of local simulation function, i.e. spwb, growth, or fordyn. The output should be a matrix with dates as rows and variables in columns. An example of suitable function is summary.spwb.

See Also

spwb_spatial, plot_summary