Ops.Date {base} | R Documentation |
Operators for the "Date"
class.
There is an Ops
method and specific
methods for +
and -
for the Date
class.
date + x
x + date
date - x
date1 lop date2
date |
an object of class |
date1 , date2 |
date objects or character vectors. (Character
vectors are converted by |
x |
a numeric vector (in days) or an object of class
|
lop |
one of |
x
does not need to be integer if specified as a numeric vector,
but see the comments about fractional days in the help for
Dates
.
(z <- Sys.Date())
z + 10
z < c("2009-06-01", "2010-01-01", "2015-01-01")