getHydroYear: Hydrological Year

View source: R/Dates.R

getHydroYearR Documentation

Hydrological Year

Description

Compute hydrological (or meteorological or whatever) year

Usage

getHydroYear(months, years, hydroYear = 1:12)

Arguments

months

integer vector, months (between 1 and 12).

years

integer vector, same size as months, years.

hydroYear

integer vector, hydro-year definition.

Value

A vector with same size as years containing the corresponding hydro-year.

Examples

getHydroYear(months=1:12,years=rep(2020,12),hydroYear=c(9,10,11))
getHydroYear(months=1:12,years=rep(2020,12),hydroYear=c(12,1,2))

benRenard/BFunk documentation built on July 20, 2022, 7:07 a.m.