annuity: Annuity Loan Calculation

Description Usage Arguments Value Examples

View source: R/capitalR.R

Description

Calculates the payment, present value, future value, rate, or the number of periods

Usage

1
2
annuity(type = c("pv", "fv", "pmt", "nper", "rate"), pv, fv = 0, pmt,
  n, r, end = TRUE)

Arguments

type

Loan parameter to return. ("pv", "fv", "pmt", "nper", "rate")

pv

Present Value

fv

Future Value

pmt

Periodic Payment

n

Number of Periods

r

Rate

end

Logical, set to TRUE. If FALSE, payments are made at the beginning the period.

Value

Returns the selected Annuity Loan Parameter

Examples

1
annuity(type = "pmt", pv = -2000, fv = 0, n  = 4 * 12, r = 0.06/12, end = TRUE)

Example output

[1] 46.97006

capitalR documentation built on Dec. 1, 2019, 1:23 a.m.