Skip to contents

Converts a datey to calendar years, including a fractional part that represents the proportion of the calendar year that has elapsed.

For example,

  • the start of 2000-01-01 (or, equivalently, the end of 1999-12-31), results in 2000, and

  • the middle of the calendar year 2000 results in 2000.5.

Note the following:

Usage

# S3 method for class 'datey'
as.double(x, ...)

# S3 method for class 'datey'
as.integer(x, ...)

Arguments

x

The datey to convert to years.

...

Other arguments (not used in this package).

Value

A vector of double.