hydrologic_date_functions: Hydrologic date helper functions

Description Usage Arguments Value Note Author(s)

Description

Provides 'lubridate' type functions for getting numeric values from 'Date' and 'POSIXt' objects based on the water year.

Usage

1
2
3
4
5

Arguments

t

timestamp object (e.g. Date, POSIXt classes)

splitMonths

numerals for months that are to be split in two for 14 (or n) period models, defaults to April (7) and August (11).

splitDay

day on which months should be split, defaults to 16.

monthAbbrevs

the ordered abbreivations to use, defaults to wymonth.abb. Use month.abb if you want calendar year order, month.name if you want full month names

sep

separator between month and periodNames

case

function to convert cases, toupper for upper case months, tolower for lower case, null (default) for no change

periodNames

- naming convention for periods, defaults to 1 and 2, for example, could be I and II, or A and B.

Value

wateryear water year for a given timestamp (October of previous calendar year through September)

wymonth month of water year (Oct = 1, Sept = 12)

wyday day of water year (01Oct=1, 30Sep=365+leapyear(y))

wymonth.abb abbreviated months of year sorted by water year order

months14 returns a function that when diven a timestamp, returns a factor of the 'abbreviated' 14-period months, can be more split periods than just typical 14-periods.

Note

wy is no longer provided due to conflicts with the common use in hydrologic programs

Author(s)

Evan Heisman


eheisman/hydroutils documentation built on May 16, 2019, 12:15 a.m.