Extract the month of the water year from a date or time object.

Share:

Description

Extract the month of the water year from a date or time object. Can be returned as a number 1:12, for October through September respectively, or an ordered factor.

Usage

1
  water.month(x, label = FALSE, abbr = TRUE)

Arguments

x

a date or time object

label

logical TRUE will return an ordered factor for month with the month name as labels

abbr

logical. FALSE will abbreviate the name of the month in the ordered factor.