Skip to contents

This function is a little more robust than calcWaterYear

Usage

water_year(x)

Arguments

x

character vector

Examples

x <- c("2010-01-01", "1994-02", "1980", "2009-11-01")
water_year(x)
#> Calendar year being reported as water year in row(s) 3
#> [1] 2010 1994 1980 2010