arithmetic | R Documentation |
Operators performing arithmetic operations.
## 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)
e1 , e2 |
A |
Rata die will be converted to a plain numeric
vector if a computation no
longer makes sense in temporal terms.
A logical
vector.
N. Frerebeau
Other fixed date tools:
as_date()
,
as_decimal()
,
as_fixed()
,
as_year()
,
fixed()
,
fixed_gregorian
,
fixed_julian
,
format()
,
pretty()
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.