Creates an instance of a loan class

Description

Creates an instance of a loan class

Usage

1
loan(rate, maturity, amt, type, grace_int = 0, grace_amort = grace_int)

Arguments

rate

The periodic effective rate of the loan

maturity

The maturity of the loan, measured in the same units as the periodicity of the rate

amt

The amount loaned

type

The type of loan. Available types are c("bullet","french","german")

grace_int

The number of periods that the loan doesn't pay interest and capitalizes it. Leave in 0 for zero loans

grace_amort

The number of periods that the loan doesn't amortize

Examples

1
loan(rate = 0.05, maturity = 10, amt = 100, type = "bullet")