waterYear: Originally from smwrBase, borrowed to remove dependency on...

Description Usage Arguments Value Examples

Description

Originally from smwrBase, borrowed 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/sedReview documentation built on Aug. 24, 2020, 9 p.m.