Transform a date in decimal year format to a specific day or a range of days

ddate2date(ddate, type = "start")

Arguments

ddate

A numeric value in years with decimals

type

Not yet implemented

Value

date.table con solo una fechas: start.date

Examples

ddate2date(1985 + seq(0,1,by=.1))
#> start.date #> 1: 1985-01-01 #> 2: 1985-02-06 #> 3: 1985-03-15 #> 4: 1985-04-20 #> 5: 1985-05-27 #> 6: 1985-07-02 #> 7: 1985-08-08 #> 8: 1985-09-13 #> 9: 1985-10-20 #> 10: 1985-11-25 #> 11: 1986-01-01
ddate2date(1984 + seq(0,1,by=.1))
#> start.date #> 1: 1984-01-02 #> 2: 1984-02-07 #> 3: 1984-03-15 #> 4: 1984-04-20 #> 5: 1984-05-27 #> 6: 1984-07-02 #> 7: 1984-08-08 #> 8: 1984-09-13 #> 9: 1984-10-20 #> 10: 1984-11-25 #> 11: 1985-01-01