hyear: Calculates the hydrological year for a given date

View source: R/hyear.R

hyearR Documentation

Calculates the hydrological year for a given date

Description

In Central Asia the hydrological year starts in October of the previous year.

Usage

hyear(date)

Arguments

date

as_date or as.POSIXct

Value

Hyear as numeric

See Also

Other Helper functions: %>%(), aggregate_to_monthly(), cutRaster2Basin(), decadeMaker(), generateSeqDates(), monDateSeq(), posixct2rsminerveChar()

Examples

Hyear <- hyear(lubridate::as_date(c("2015-09-30", "2015-10-01", "2016-01-27")))

hydrosolutions/riversCentralAsia documentation built on Feb. 7, 2023, 4:50 p.m.