decimal_date

0th

Percentile

Converts a date to a decimal of its year.

Converts a date to a decimal of its year.

Keywords
manip, methods, chron
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

Aliases
  • decimal_date
  • decimal.date
  • decimal_date.default
  • decimal_date.zoo
  • decimal_date.its
Examples
date <- as.POSIXlt("2009-02-10")
decimal_date(date)  # 2009.109}
Documentation reproduced from package lubridate, version 0.1, License: GPL

Community examples

Looks like there are no examples yet.