powered by
Get new calendar
getCalendar(calstr)
A external pointer classed as S3 class 'qlcalendar'
Character variable identifying desired calendar
This function returns an external pointer, classed as small S3 helper class, to a new QuantLib Calendar object identified by the calendar string.
setCalendar
xp <- getCalendar("UnitedStates/NYSE") xp # invokes the print method xp2 <- getCalendar("Canada/TSX") xp2 # invokes the print method
Run the code above in your browser using DataLab