waterYear: Stolen from smwrBase to remove dependency on that package...

Description Usage Arguments Value Examples

Description

Stolen from smwrBase to remove dependency on that package Takes a date and returns the water year

Usage

1

Arguments

x

an object of class "Date" or "POSIXt." Missing values are permitted and result in corresponding missing values in the output.

numeric

numeric a logical value that indicates whether the returned values should be numeric TRUE or an ordered factor FALSE. The default value is FALSE.

Value

A dataframe containing all samples with applicable flags

Examples

1
waterYear("2015-01-01")

USGS-R/WQ-Review documentation built on Nov. 12, 2019, 9:51 a.m.