powered by
Operators for the "Date" class.
"Date"
There is an Ops method and specific methods for + and - for the Date class.
Ops
+
-
Date
date + x x + date date - x date1 lop date2
date + x
x + date
date - x
date1 lop date2
date objects
date objects or character vectors. (Character vectors are converted by as.Date.)
as.Date
a numeric vector (in days) or an object of class "difftime", rounded to the nearest whole day.
"difftime"
One of ==, !=, <, <=, > or >=.
==
!=
<
<=
>
>=
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.
x
Dates
# NOT RUN { (z <- Sys.Date()) z + 10 z < c("2009-06-01", "2010-01-01", "2015-01-01") # }
Run the code above in your browser using DataLab