NextBusinessDay {LFUrmutils} | R Documentation |
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.
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
# Load returns data("CRSPday_zoo") y <- CRSPday_zoo # End of the sample end(y) # Next business day NextBusinessDay(y)