waterDayYear: Compute Water Day and Year

View source: R/waterDayYear.R

waterDayYearR Documentation

Compute Water Day and Year

Description

Compute "water" day and year, based on the end of the typical or legal dry season. This is September 30 in California.

Usage

waterDayYear(d, end = "09-30", format = "%Y-%m-%d", tz = "UTC")

Arguments

d

anything the can be safely converted to POSIXlt

end

"MM-DD" notation for end of water year

format

Used in POSIXlt conversion. Default "%Y-%m-%d"

tz

Used in POSIXlt conversion for custom timezone. Default is "UTC"

Details

This function doesn't know about leap-years. Probably worth checking.

Value

A data.frame object with the following

wy

the "water year"

wd

the "water day"

Author(s)

D.E. Beaudette

Examples


# try it
waterDayYear('2019-01-01')


soilDB documentation built on Nov. 17, 2023, 1:09 a.m.