Ops.Date

0th

Percentile

Operators on the Date Class

Operators for the "Date" class.

There is an Ops method and specific methods for + and - for the Date class.

Keywords
utilities, chron
Usage
date + x x + date date - x date1 lop date2
Arguments
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", rounded to the nearest whole day.
lop
One of ==, !=, <, <=< code="">, > or >=.
Details

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.

Aliases
  • +.Date
  • -.Date
  • Ops.Date
Documentation reproduced from package base, version 3.1.3, License: Part of R 3.1.3

Community examples

Looks like there are no examples yet.