present_value: Cashflows

View source: R/cashflow.R

present_valueR Documentation

Cashflows

Description

computes the present value of some cashflow stream using the provided interest rate, cashflow transaction, compounding type and termin period.

Usage

present_value(
  cashflow = NULL,
  r = NULL,
  terminal_period = NULL,
  simple = F,
  verbose = T
)

Arguments

cashflow

a collection of cashflows made to an idealized bank - a cashflow stream (positive and negative)

r

interest rate (in percent)

terminal_period

after how many future periods the cashflow should be realized. if this is zero, then the terminal period is the last time step a cashflow transaction occurs (e.g., length(cashflow)).

simple

Use linear (default) or exponential discounting

verbose

should verbose logging be used

Value

returns the value of the cashflow at period 0

Author(s)

christian bitter


christianbitter/cbFinance documentation built on Sept. 28, 2024, 4:54 p.m.