dates-transformation: Functions to transform dates into other useful information

dates transformationR Documentation

Functions to transform dates into other useful information

Description

Functions to transform dates into other useful information

Usage

date2year(datevec)

date2wy(datevec, endMonth = 9)

date2month(datevec)

date2summer(datevec, begMonth = 4, endMonth = 9)

Arguments

datevec

a vetor of dates (class(datevec) must be Date)

endMonth

the month which indicates the end of the Water Year or Summer Season (default is 9, September)

begMonth

the month which indicates the beginning of summer (default is 4, April)

Value

The year, water year or month from the input date. Or a 0-1 indicator of summer.


ilapros/ilaprosUtils documentation built on April 6, 2023, 4:44 a.m.