Learn R Programming

qlcal (version 0.1.0)

setCalendar: Set a calendar

Description

Set a calendar

Usage

setCalendar(calstr)

Value

Nothing is returned but the global state is changed

Arguments

calstr

A character variable containing the market for which a calendar is to be set

Details

This function sets the default calendar to the given market or country convention. Note that additional calendar objects can be created with the getCalendar function.

See Also

getCalendar

Examples

Run this code
setCalendar("UnitedStates/NYSE")  # sets global calendar
setCalendar("Canada/TSX")         # reset global calendar

Run the code above in your browser using DataLab