WY: Determines Water Year from a date field

View source: R/WY.R

WYR Documentation

Determines Water Year from a date field

Description

Determines Water Year from a date field

Usage

WY(date, WY.type = "FL")

Arguments

date

Date in as.POSIXct or as.Date format

WY.type

Specifies Federal ("Fed") or Florida ("FL") water years

Value

Returns water year value based on Federal (Starts Oct 1) or Florida (Starts May 1),

Examples

dates=as.Date(c("2015-05-01","2015-08-20","2015-12-15"))
WY(dates)

SwampThingPaul/AnalystHelper documentation built on Nov. 3, 2024, 10:02 a.m.