anniversary | R Documentation |
Number of anniversaries between two dates.
anniversary(to, from)
to |
an R object convertible to POSIXlt, end date/time |
from |
an R object convertible to POSIXlt, start date/time |
Year difference between from
and to
dates are calculated
In either situation below, subtract one (1) year from the year difference obtained in Step 1.
Month of from
is later than month of to
;
Months of from
and to
are the same, but day of from
is later than day of to
.
In either of such situations, the anniversary of the current year has not been reached.
If any element from Step 2 is negative, stop.
Function anniversary returns an integer scalar or vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.