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, andthe middle of the calendar year 2000 results in
2000.5.
Note the following:
as.numeric()is the same asas.double().as.integer()gives the calendar year, e.g.as.integer(datey(2000.9))is2000.as.integer(x)is the same asas.integer(as.double(x)).
Usage
# S3 method for class 'datey'
as.double(x, ...)
# S3 method for class 'datey'
as.integer(x, ...)