Learn R Programming

CSHShydRology (version 1.4.2)

ch_wtr_yr: Designation of the water year

Description

Display water year

Usage

ch_wtr_yr(dates, start_month = 10)

Value

Year starting in start_month

Arguments

dates

A vector of dates with actual year

start_month

Month in which the year starts (defaults to October)

Examples

Run this code
date <- seq(as.Date("1910/1/1"), as.Date("1912/1/1"), "days")
wtr_yr_date <- ch_wtr_yr(dates=date, start_month=10)
df <- data.frame(wtr_yr_date, date)

Run the code above in your browser using DataLab