Helper functions for extracting information from dates. Or to create a Date from a day number.
Usage
fromDate(x, v)
fromYear(y, v)
fromDoy(doy, y)
Value
integer or Date
Arguments
x
Date or POSIX
y
integer (year)
v
character. Output variable. With fromDate it can be one of: "year", "month", "week", "day", "doy". With fromYear it can be one of "leap", "ndays", "days"