| arithmetic {aion} | R Documentation |
Arithmetic Operators
Description
Operators performing arithmetic operations.
Usage
## S4 method for signature 'RataDie,RataDie'
Arith(e1, e2)
## S4 method for signature 'numeric,RataDie'
Arith(e1, e2)
## S4 method for signature 'RataDie,numeric'
Arith(e1, e2)
Arguments
e1, e2 |
Details
Rata die will be converted to a plain numeric vector if a computation no
longer makes sense in temporal terms.
Value
A logical vector.
Author(s)
N. Frerebeau
See Also
Other fixed date tools:
as_date(),
as_decimal(),
as_fixed(),
as_year(),
fixed(),
fixed_gregorian,
fixed_julian,
format(),
pretty()
Examples
## Vectors of years
x <- fixed(c(-350, 31, 1072, 576, 1130), calendar = CE())
y <- fixed(c(1494, 1645, -869, 1440, 1851), calendar = CE())
## Move forward in time
x + y
## Move backward in time
x - y
## Not rata die anymore
x * y
[Package aion version 1.0.4 Index]