Description Usage Arguments Value Note Author(s) Examples
View source: R/miscellaneous.R
Compute the next business day on the New York Stock Exchange (NYSE) that follows at the end of a time series. The function is mainly used internally by functions within this package, but may be useful for other purposes as well.
1 | NextBusinessDay(x, exchange = "UnitedStates/NYSE")
|
x |
An object of class |
exchange |
A string identifying one of the supported QuantLib calendars. Default is "UnitedStates/NYSE". See Details in Calendars for further options. |
An object of class date
.
Objects of other classes than zoo
may also be supplied, but are not tested. The function may work for any class for which function end()
is defined. Call methods("end")
to see for which classes this function is defined.
Bernhard Eder
1 2 3 4 5 6 7 8 9 | # Load returns
data("CRSPday_zoo")
y <- CRSPday_zoo
# End of the sample
end(y)
# Next business day
NextBusinessDay(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.