Creates a categorical variable of year type that is either based on a water year or financial year.

CreateY(Date, Ytype)

Arguments

Date

date vector

Ytype

year type, either 'WY' (water year) or 'FY' financial year