MQ_trend: MQ_trend

View source: R/MQ_trend.R

MQ_trendR Documentation

MQ_trend

Description

Calculating Trend for annual calculated mean values. It is possible to calculate the mean values for a season or for the whole hydrological year.

Usage

MQ_trend(data, station, seasonal = Y, graphic = T)

Arguments

data

list; Contains all stations that the discharge analysis should consider. List can be created by grdc_list. Each entry of the list contains the existing discharge measurements (as numeric) and the corresponding dates (as character) for the station.

station

character; Name of the Station e.g. "COCHEM" - must be named equally like list entry in data.

seasonal

character; Possible Inputs: "Y"( MQ Trend of (hydrological) Years); "WI"(MQ Trend of Winters during years); "SP"(MQ Trend of Springs during (hydrological) years); "SU"(MQ Trend of Summers during (hydrological) years); "AU"(MQ Trend of Autums during (hydrological) years)

graphic

logical; default=T. For graphic=T, function returns a graph and visualizes the trend. For graphic=F, function returns the model coefficients as list. For the Sens Sloap Approach (using: zyp.trend.vector) and for the linear model approach (using: lm).

Value

Graphic/ list:

intercept_zyp

intercept created by zyp.trend.vector

slope_zyp

slope created by zyp.trend.vector

sig_zyp

significance (Kendall's P-Value) for the final detrended time-series

intercept_ls

intercept created by lm

slope_ls

slope created by lm

Examples

 ## Not run: 
summerplot=MQ_trend(data=mata, "COCHEM", seasonal="SU", graphic=T)
## End(Not run)

maibrittbergh/dischanalyst documentation built on May 13, 2022, 1:52 a.m.