Converts a durationy to duration in years.
Note the following:
as.numeric()is the same asas.double().as.integer()obtains the integer part, e.g.as.integer(durationy(1.9))is1andas.integer(durationy(-1.9))is-1.as.integer(x)is the same asas.integer(as.double(x)).
Usage
# S3 method for class 'durationy'
as.double(x, ...)
# S3 method for class 'durationy'
as.integer(x, ...)