### Example with the 2 indicators and 8 pressure time series in the Baltic Sea demo data
# where the last 7 years of the time series represent the current assessment period:
model_sensitivity(
indicator_time_series = indicator_ts_baltic,
pressure_time_series = pressure_ts_baltic,
current_years = c(start = 2010, end = 2016)
)
### Example with the demo data but indicator-pressure-specific assessment periods:
sens_tbl <- model_sensitivity(
indicator_time_series = indicator_ts_baltic,
pressure_time_series = pressure_ts_baltic,
current_years_by_ind_press = data.frame(
ind = rep(names(indicator_ts_baltic)[-1], each = 8),
press = rep(names(pressure_ts_baltic)[-1], 2),
start = c(rep(2010, 8), rep(2008, 8)),
end = c(rep(2016, 8), rep(2015, 8))
)
)
# add the associated uncertainty (from 1 to 3, default is NA)
sens_tbl$adaptive_capacity <- c(0,0,1,1,1,1,-1,-1, -1,-1,1,1,1,1,1,-1)
sens_tbl$uncertainty_ac <- c(2,2,1,1,1,1,2,1, 3,3,1,1,2,2,3,1)
sens_tbl
Run the code above in your browser using DataLab