NMxQmeta: Area-wide NMxQ Trend

View source: R/nmxqmeta.R

NMxQmetaR Documentation

Area-wide NMxQ Trend

Description

Function creates dataframe of stations, containing Trend (every year/within a specific season) of their NMxQ Value within the given timeframe. Therefore it filters all stations within the metadataset depending on the start- and endyear of their Measurement Series.

Usage

NMxQmeta(x, data, metadata, Startyear, Endyear)

Arguments

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

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.

metadata

Data Frame. Overview of GRDC-Dataset. The metadata can be created by metadata_grdc function.

Startyear

numeric; Startyear of timerange.

Endyear

numeric; Endyear of timerange.

Value

dataframe. Including the stationname, the river, the spatial information of the station, the trend (linear model and zyp/"yuepilon"approach (with PreWhitening and Autocorrelation)) trend within every year/winter/summer/spring/autumn in timeframe.

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: 
NMxQmeta(7 , data, metadata, 1820, 2019)
## End(Not run)


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