Skip to contents

Converts a durationy to duration in years.

Note the following:

  • as.numeric() is the same as as.double().

  • as.integer() obtains the integer part, e.g. as.integer(durationy(1.9)) is 1 and as.integer(durationy(-1.9)) is -1. as.integer(x) is the same as as.integer(as.double(x)).

Usage

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

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

Arguments

x

The durationy to convert to years.

...

Other arguments (not used in this package).

Value

A vector of double.