Transform a date in decimal year format to range of days

ddate2date.3d(ddate, type = "start", with = 0.1)

Arguments

ddate

A numeric value in years with decimals

type

!no implementado!

with

Width of the temporal granule that begins in ddate. By default 0.1 year

Value

date.table con 3 fechas: start.date, end.date, central.date

See also

ddate2date

Examples

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