Last chance! 50% off unlimited learning
Sale ends in
Converts a date to a decimal of its year
decimal_date(date)
a POSIXt or Date object
a numeric object where the date is expressed as a fraction of its year
# NOT RUN {
date <- ymd("2009-02-10")
decimal_date(date) # 2009.11
# }
Run the code above in your browser using DataLab