waterDayYear: Compute Water Day and Year

Description Usage Arguments Details Value Author(s) References Examples

View source: R/waterDayYear.R

Description

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

Usage

1
waterDayYear(d, end = "09-30", tz = "")

Arguments

d

anything the can be safely converted to PPOSIXlt

end

"MM-DD" notation for end of water year

tz

Used in POSIXlt conversion for custom timezone. Default "" is current locale

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

References

Ideas borrowed from: https://github.com/USGS-R/dataRetrieval/issues/246 and https://stackoverflow.com/questions/48123049/create-day-index-based-on-water-year

Examples

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

soilDB documentation built on Dec. 15, 2021, 1:10 a.m.