growth_and_yield_evaluation {care4cmodel}R Documentation

Extensive Growth and Yield Evaluation

Description

Provide an extensive compilation of growth and yield related results.

Usage

growth_and_yield_evaluation(sim_agg, concept_def, detailed_out = FALSE)

Arguments

sim_agg

Aggregated simulated area dynamics, more precisely, the output of aggregate_raw_sim_rslt

concept_def

Concept definition matching sim_agg, a c4c_concept object

detailed_out

Boolean, if TRUE, also pre-evaluation output (calculated by the internal function growth_and_yield_pre_eval) will be part of the result list (default = FALSE)

Details

The result object, a list, contains the following elements:

Value

A list with two elements (see also details),

If the user has selected detailed_out = TRUE, there will also be another list element, gyield_pre, which contains the interim information from which gyield_summary and gyield_phases are calculated.

Examples

  # Run a simulation and store the aggregated outcome
  state_vars <- setup_statevars(
    pine_thinning_from_above_1, c(1000, 0, 0, 0, 0, 0)
  )
  time_span <- 200
  parms     <- setup_parms(pine_thinning_from_above_1)
  parms$risk_mat <- setup_risk_events(
    time_span, avg_event_strength = 1, parms$risk
  )

  sim_areas_agg <- sim_area_single_concept_with_risk(
    state_vars,
    parms       = parms,
    event_times = c(0:time_span),
    time_span   = time_span
  ) |>
    aggregate_raw_sim_rslt(pine_thinning_from_above_1)

  # Growth and yield evaluation
  growth_and_yield_evaluation(sim_areas_agg, pine_thinning_from_above_1)


[Package care4cmodel version 1.0.1 Index]