TimeValue: A function to compute the time value of money A standard...

Description Usage Arguments Examples

View source: R/TimeValueFunction.R

Description

A function to compute the time value of money

A standard generic function used to calculate time value of money

Usage

1
2
3
4
5
6
TimeValue(
  interest.rate = numeric(),
  number.periods = numeric(),
  frequency = numeric(),
  type = "character"
)

Arguments

interest.rate

The interest rate used to determine the discount factor in decimal form (i.e. 4.0% is input as 0.04)

number.periods

The number of discount periods. For example, in the case of a mortgage whose cash flow occurs monthly over 30 years the number of periods is 360.

frequency

The frequency of interest payments. For example the frequency of a mortgage whose payments occur monthly is 12

type

The type of calculation PV = present value, PVA = present value of annuity, PVAD present value of annuity due, FV = future value, FVA = future value of annuity.

Examples

1
2
TimeValue(interest.rate = .05, number.periods = 3, 
frequency = 1, type = "PV")

glennmschultz/BondLab documentation built on May 11, 2021, 5:29 p.m.