get_scenario_sub_sums: Function to get sums of 'sub' data over scenarios

Description Usage Arguments Value

View source: R/f_averaging.R

Description

This function averages output data by periods and collapse it by setups, and sums it over scenarios for all setups.

Usage

1
get_scenario_sub_sums(df, period_list, data_type = "y")

Arguments

df

Data.frame of imported output.*** SWAT file

period_list

List of periods used in averaging data (example period_list <- list (base = c(2000, 2019), mid = c(2040, 2059), end = c(2080, 2099)))

data_type

One letter sting "y" for yearly or "m" for monthly

Value

Data.frame of summed up over scenarios.


biopsichas/swattools documentation built on May 27, 2021, 6:17 p.m.