Description Usage Arguments Value
View source: R/compare_scenarios.R
This function compares two time series and evaluates the second series for ecologically significant differences from the first.
1 2 3 4 5 6 7 | compare_scenarios(
df1,
df2,
metric_uncertainty,
rules = CSLSscenarios::ecological_rules,
bathymetry = CSLSdata::bathymetry
)
|
df1 |
data frame with baseline hydrologic metrics |
df2 |
data frame with hydrologic metrics of scenario being evaluated for significant impact. |
metric_uncertainty |
data frame with lake, metric, variable, and allowable "difference" due to uncertainty in the metric. Currently evaluated as the standard deviation in the "no irrigation" scenarios of the metric. |
rules |
data frame with ecological rules for ecological indicators related to hydrologic metrics. |
bathymetry |
data frame with bathymetric relationships with parameters like lake area, lake volume, plant area, etc. |
comparison, a data frame with the following columns:
lake |
name of lake |
hydrology |
type of hydrologic metric (e.g., magnitude) |
metric |
hydrologic metric (e.g., exceedance_level) |
variable |
type of hydrologic metric (e.g. "90" for 90th percentile exceedance level) |
category |
category of ecological indicator (e.g., plants, fish) |
indicator |
ecological indicator (e.g., volume_habitat) |
impacted |
logical, TRUE if this ecological indicator is impacted from baseline under this scenario |
significant_if |
notes whether scenario is significant if scenario values are "higher" or "lower" than threshold values |
value1 |
base value of hydrologic metric |
threshold |
threshold value of hydrologic metric |
value2 |
scenario value of hydrologic metric |
threshold_diff |
difference between threshold and base value of hydrologic metric |
diff |
difference between scenario and base value of hydrologic metric |
bathy_significant_if |
notes whether scenario is significant if scenario child/bathymetric values are "higher" or "lower" than child/bathymetric threshold values |
bathy1 |
base value of child/bathymetric metric (if applicable) |
bathy_threshold |
threshold value of child/bathymetric metric (if applicable) |
bathy2 |
scenario value of child/bathymetric metric (if applicable) |
bathy_threshold_diff |
difference between bathy_threshold and bathy1 |
bathy_diff |
difference between bathy2 and bathy1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.