Schedule: Schedule generation

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/schedule.R

Description

The Schedule function generates a schedule of dates conformant to a given convention in a given calendar.

Usage

1
2
## Default S3 method:
Schedule(params)

Arguments

params

a named list, QuantLib's parameters of the schedule.

effectiveDate a Date, when the schedule becomes effective.
maturityDate a Date, when the schedule matures.
period (Optional) a number or string, the frequency of
the schedule. Default value is 'Semiannual'.
calendar (Optional) a string, the calendar name.
Defaults to 'TARGET'
businessDayConvention (Optional) a number or string, the
day convention to use.
Defaults to 'Following'.
terminationDateConvention (Optional) a number or string, the
day convention to use for the terminal date.
Defaults to 'Following'.
dateGeneration (Optional) a number or string, the
date generation rule.
Defaults to 'Backward'.
endOfMonth (Optional) 1 or 0, use End of Month rule for
schedule dates. Defaults to 0 (false).

See example below.

Details

Please see any decent Finance textbook for background reading, and the QuantLib documentation for details on the QuantLib implementation.

Value

The Schedule function returns an object of class Schedule. It contains the list of dates in the schedule.

Author(s)

Michele Salvadore [email protected] for the inplementation; Dirk Eddelbuettel [email protected] for the R interface; the QuantLib Group for QuantLib

References

http://quantlib.org for details on QuantLib.

See Also

FixedRateBond

Examples

1
2
3
4
5
6
7
8
9
params <- list(effectiveDate=as.Date("2004-11-30"),
               maturityDate=as.Date("2008-11-30"),
               period='Semiannual',
               calendar='UnitedStates/GovernmentBond',
               businessDayConvention='Unadjusted',
               terminationDateConvention='Unadjusted',
               dateGeneration='Forward',
               endOfMonth=1)
Schedule(params)

RQuantLib documentation built on Dec. 10, 2018, 5:06 p.m.