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 date - x date1 lop date2
date |
date objects |
date1, date2 |
date objects or character vectors. (Character
vectors are converted by as.Date . |
x |
a numeric vector (in days) or an object of class
"difftime" . |
lop |
One of == , != , < , <= , >
or >= . |
(z <- Sys.Date()) z + 10 z < c("2006-06-01", "2007-01-01", "2010-01-01")