decimal_date: Converts a date to a decimal of its year.

Description Usage Arguments Value Examples

Description

Converts a date to a decimal of its year.

Usage

1

Arguments

date

a POSIXt or Date object

Value

a numeric object where the date is expressed as a fraction of its year

Examples

1
2
date <- ymd("2009-02-10")
decimal_date(date)  # 2009.11


Search within the lubridate package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.