AMextract: Annual maximum extraction

Description Usage Arguments Details Value Author(s) Examples

View source: R/All.R

Description

Extracts the annual maximum peaks from a data.frame which has dates in the first column and variable in the second.

Usage

1
AMextract(x, Plot = TRUE)

Arguments

x

a data.frame with dates (or POSIXct) in the first column and variable in the second

Plot

a logical argument with a default of TRUE. If TRUE the extracted annual maximum is plotted

Details

The peaks are extracted based on the UK hydrological year, which starts October 1st and ends September 30th. If there are NAs for full years in the data, an -Inf will be returned for that year.

Value

a data.frame with columns; WaterYear and AM

Author(s)

Anthony Hammond

Examples

1
2
3
#Extract the Thames AMAX daily mean flow and display the first six rows
ThamesAM <- AMextract(ThamesPQ[,c(1,3)])
head(ThamesAM)

UKFE documentation built on Oct. 14, 2021, 5:06 p.m.

Related to AMextract in UKFE...