excelpmt: R analog port of Excel's PMT function

Description Usage Arguments Examples

View source: R/excelpmt.R

Description

Originally found as a GIST: https://gist.github.com/raadk/dcd503815bbb271484ff

Usage

1
excelpmt(rate, nper, pv, fv = 0, type = 0)

Arguments

rate

interest rate

nper

number of periods

pv

present value

fv

future value (default is 0)

type

maturity of the payment; 0 = end of period, 1 = beginning; (default is 0)

Examples

1
excelpmt(rate = .03, nper = 60, pv = 60000)

Paul-James/pjames documentation built on Aug. 9, 2019, 12:18 p.m.