pv: Returns the present value of a single payment and annuity...

View source: R/pv.R

pvR Documentation

Returns the present value of a single payment and annuity payments (spending) made in the future (fv)

Description

Returns the present value of a single payment and annuity payments (spending) made in the future (fv)

Usage

pv(
  rate = 0,
  inflation = 0,
  nper = 1,
  fv = 0,
  pmt = 0,
  pmtinfladj = FALSE,
  pmtUltimo = TRUE
)

Arguments

rate

The interest rate per period. Default is zero. Must be entered as decimal.

inflation

The inflation forcast. Default is zero. Must be entered as decimal.

nper

The total number of payment periods. Default is one period.

fv

The future value of single spending made in the future. Default is assumed to be zero. Must be entered as a negative number.

pmt

The payment (spending) made each period (annuity) in the future. Must be entered as a negative number.

pmtinfladj

Should the payments be inflation adjusted? E.g. are the annuity pmt constant or real annuities. Only avaliable for pmt given as scalar. Default value = FALSE.

pmtUltimo

When payments are due. TRUE = end of period, FALSE = beginning of period. Default is TRUE.

See Also

fv.single

fv.annuity

Examples

pv(rate=0.04,inflation=0.02, nper=10,fv=-1000,pmt=-10,pmtinfladj=FALSE,pmtUltimo=TRUE)
pv(rate=0.04,inflation=0.02,nper=10,pmt=-10,pmtinfladj=TRUE,pmtUltimo=TRUE)
pv(rate=0.04,inflation=0.02,nper=10,fv=-1000)

eaoestergaard/UNPIE documentation built on Aug. 23, 2022, 2:28 a.m.