get_period_means: Function to average output data over some period

Description Usage Arguments Value

View source: R/f_averaging.R

Description

This function averages output data imported from SWAT output.rch output.sub and output.hru files. Data should have been imported by using extract_watersheds_output function.

Usage

1
get_period_means(df, starting_year, ending_year, data_type = "y")

Arguments

df

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

starting_year

Number representing starting year of period (example 2000)

ending_year

Number representing ending year of period (example 2019)

data_type

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

Value

Data.frame of averaged data over period


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