decimal_date
From lubridate v0.1
by Hadley Wickham
Converts a date to a decimal of its year.
Converts a date to a decimal of its year.
Usage
decimal_date(date)
Arguments
- date
- a POSIXt or Date object
Value
- a numeric object where the date is expressed as a fraction of its year
Examples
date <- as.POSIXlt("2009-02-10")
decimal_date(date) # 2009.109}
Community examples
Looks like there are no examples yet.