Learn R Programming

WARDEN (version 0.99.1)

disc_cycle_v: Cycle discounting for vectors

Description

Cycle discounting for vectors

Usage

disc_cycle_v(
  lcldr = 0.035,
  lclprvtime = 0,
  cyclelength,
  lclcurtime,
  lclval,
  starttime = 0
)

Value

Double based on cycle discounting

Arguments

lcldr

The discount rate

lclprvtime

The time of the previous event in the simulation

cyclelength

The cycle length

lclcurtime

The time of the current event in the simulation

lclval

The value to be discounted

starttime

The start time for accrual of cycle costs (if not 0)

Examples

Run this code
disc_cycle_v(lcldr=0.035, lclprvtime=0, cyclelength=1/12, lclcurtime=2, lclval=500,starttime=0)


Run the code above in your browser using DataLab