Learn R Programming

htsr (version 2.1.6)

h_year: Annual time series

Description

Annual time series

Usage

h_year(file, mhy = 1, op = "M", dig = 1)

Value

The function returns a time-series of annual values.

Arguments

file

File name to proceed

mhy

Starting month of the hydrological year (default = 1)

op

Sum (S) or Mean (M) (default = "M")

dig

Number of significant digits for Value (default = 1)

Author

P. Chevallier - Nov 2022

Details

The function computes an annual time-series using the annual mean or the annual sum of daily values. It allows the use of hydrological years. The date corresponds to the middle of the year, i.e. the 182th day.