-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The function `add` has been renamed to `add.bizdays`.
- Loading branch information
1 parent
21d05e7
commit 97dabd6
Showing
5 changed files
with
75 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
\name{add.bizdays} | ||
\alias{add.bizdays} | ||
\alias{add.bizdays.Date} | ||
\alias{add.bizdays.POSIXct} | ||
\alias{add.bizdays.POSIXlt} | ||
\alias{add.bizdays.character} | ||
\title{Adds \code{n} business days to the given \code{dates}.} | ||
\usage{ | ||
add.bizdays(dates, n, cal) | ||
|
||
\method{add.bizdays}{character}(dates, n, | ||
cal = bizdays.options$get("default.calendar")) | ||
|
||
\method{add.bizdays}{POSIXct}(dates, n, | ||
cal = bizdays.options$get("default.calendar")) | ||
|
||
\method{add.bizdays}{POSIXlt}(dates, n, | ||
cal = bizdays.options$get("default.calendar")) | ||
|
||
\method{add.bizdays}{Date}(dates, n, | ||
cal = bizdays.options$get("default.calendar")) | ||
} | ||
\arguments{ | ||
\item{dates}{a date or a vector of dates to be offset} | ||
|
||
\item{n}{the amount of business days to add} | ||
|
||
\item{cal}{an instance of Calendar} | ||
} | ||
\description{ | ||
This function returns the given \code{dates} offset by the | ||
given amount of \code{n} business days. | ||
} | ||
\examples{ | ||
data(holidaysANBIMA) | ||
cal <- Calendar(holidaysANBIMA) | ||
add.bizdays("2013-01-02", 5, cal) | ||
dates <- seq(as.Date("2013-01-01"), as.Date("2013-01-05"), by="day") | ||
add.bizdays(dates, 1, cal) | ||
} | ||
|