get_waterYearDay: Day of water year

View source: R/get_waterYearDay.R

get_waterYearDayR Documentation

Day of water year

Description

Given a vector of dates, calculates day of water year accounting for leap years.

Usage

get_waterYearDay(x, wyMonth = 10L)

Arguments

x

A vector of class date.

wyMonth

A numeric. The month of the year in which the water year starts (1=January, 12=December). The water year begins on the first day of wyMonth.

Value

A numeric vector of day of water year

Examples

x <- seq(from=as.Date("2010-01-01"),to=as.Date("2016-01-01"),by="1 days")
year_day <- get_waterYearDay(x, 2L)

USGS-R/EflowStats documentation built on Sept. 30, 2023, 9:31 p.m.