NMxQ_trend: NMxQ_trend

View source: R/NMxQ_trend.R

NMxQ_trendR Documentation

NMxQ_trend

Description

Function calculates for every year within measurements NMxQ Value (Description: NMxQ). It returns a trend: Sens Sloap Trend and Linear Trend. The Trend can be calculated for a specific season or for a whole year.

Usage

NMxQ_trend(data, station, x, 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.

x

numeric; Length of period (days). With decreasing Values for x , the influence of short-term anthropogenic influences increases. E.g. x=7, x=14, x=30

seasonal

character; default= "Y". 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: 
list=NMxQ_trend(data, "COCHEM", 4, graphic=F)
list_SUMMER=NMxQ_trend(mata, "COCHEM",4,  seasonal="SU", graphic=F)
## End(Not run)



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