Converts a doy (or array of doys) to date format. Year of origin has to be specified, to allow proper handling of leap years
doytodate(doys, year, verbose = TRUE)
doys | 'numeric array' DOYs to be converted. |
---|---|
year | 'numeric year to be used as basis. |
verbose | 'logical' if TRUE, print messages, default = TRUE |
Date
array resulting from the conversion
DETAILS
# Convert doy 100 of 2015 to date doytodate(100, 2015)#> [1] "2015-04-10"