Learn R Programming

qlcal (version 0.1.0)

getCalendar: Get new calendar objectb

Description

Get new calendar

Usage

getCalendar(calstr)

Value

A external pointer classed as S3 class 'qlcalendar'

Arguments

calstr

Character variable identifying desired calendar

Details

This function returns an external pointer, classed as small S3 helper class, to a new QuantLib Calendar object identified by the calendar string.

See Also

setCalendar

Examples

Run this code
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