Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

htsr (version 2.1.6)

h_avday: Daily average over a sequence of several years

Description

Daily average over a sequence of several years

Usage

h_avday(file, start = NA, end = NA, mhy = 1, precip = FALSE, dig = 1)

Arguments

file

File name to proceed

start

Starting date (default = NA)

end

Ending date (default = NA)

mhy

Starting month of the hydrological year (default = 1)

precip

Precipitation time series (default = FALSE)

dig

Number of significant digits for Value (default = 1)

Author

P. Chevallier - Nov 2022

Details

The function means the values of each calendar day over a period larger than 4 years (i.e. it includes at least one Feb 29 day). The result is transfered to the last possible hydrological year of the interval.

In the special case of precipitation, where the distribution is discontinuous over time, the original values of the last hydrological year are replaced by values corrected proportionately.

Examples

Run this code
if (FALSE) {

f <- h_avday(f,   start=NA, end=NA, mhy=10, precip=TRUE, dig=1)
}

Run the code above in your browser using DataLab