adjust.date | R Documentation |
Rolls the given date to the next or previous business day, unless it is a business day.
adjust.next(dates, cal)
following(dates, cal)
adjust.none(dates, cal)
modified.following(dates, cal)
adjust.previous(dates, cal)
preceding(dates, cal)
modified.preceding(dates, cal)
dates |
dates to be adjusted |
cal |
an instance of |
adjust.next
and following
return the next business day if the
given date
is not a business day.
adjust.previous
and preceding
are similar, but return the
previous
business day.
modified.following
rolls the given date to the next business day,
unless
it happens in the next month, in this case it returns the previous business
day.
modified.preceding
is similar to modified.following
, but rolls
the given
date to the previous business day.
Date
objects adjusted accordingly.
The argument dates
accepts Date
objects and any
object that returns a valid Date
object when passed through
as.Date
, which include all POSIX*
classes and character
objects with ISO formatted dates.
adjust.next("2013-01-01", "Brazil/ANBIMA")
following("2013-01-01", "Brazil/ANBIMA")
modified.following("2016-01-31", "Brazil/ANBIMA")
adjust.previous("2013-01-01", "Brazil/ANBIMA")
preceding("2013-01-01", "Brazil/ANBIMA")
modified.preceding("2016-01-01", "Brazil/ANBIMA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.