
Last chance! 50% off unlimited learning
Sale ends in
Extracts the annual maximum peaks from a data.frame which has dates in the first column and variable in the second.
AMextract(x, Plot = TRUE)
a data.frame with dates (or POSIXct) in the first column and variable in the second
a logical argument with a default of TRUE. If TRUE the extracted annual maximum is plotted
a data.frame with columns; WaterYear and AM
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.
# NOT RUN {
#Extract the Thames AMAX daily mean flow and display the first six rows
ThamesAM <- AMextract(ThamesPQ[,c(1,3)])
head(ThamesAM)
# }
Run the code above in your browser using DataLab