Learn R Programming

tvmComp (version 1.0.2)

pvVariousCompSingleCF: Calculates Present Value of Single Cash Flow for various Compounding Frequencies.

Description

Calculates Present Value of Single Cash Flow for various Compounding Frequencies.

Usage

pvVariousCompSingleCF(r, n, fv, cfreq)

Arguments

r

A number.

n

A number.

fv

A number.

cfreq

A number.

Value

Input values to four arguments r , n , fv and cfreq

Details

The method pvVariousCompSingleCF() is developed to calculate Present Value of Single Cash Flow for various Compounding Frequencies and gives Present Value when values are passed to its four arguments. Here r is annual rate, n is number of years, pv is Present Value and cfreq is Compounding Frequency value that must be either 1 or 2 or 4 or 12 or 365.

References

hummtvmComp

Examples

Run this code
# NOT RUN {
pvVariousCompSingleCF( 0.08,10,2000,2)
pvVariousCompSingleCF( 0.08,10,2000,4)
pvVariousCompSingleCF( 0.08,10,2000,12)
pvVariousCompSingleCF( 0.08,10,2000,365)
# }

Run the code above in your browser using DataLab