interest: Create Interest Helper function

Description Usage Arguments Value Examples

View source: R/Income.R

Description

Function to create an interest income type

Usage

1
interest(date, principal = 1, amount, desc = "")

Arguments

date

date of interest payment. Date type

principal

principal amount . numeric type

amount

dollar amount of interest payment. numeric type

desc

optional description of interest. string type

Value

valid income object

Examples

1
interest(Sys.Date(), 1000, 1, "monthly interest")

chrishaarstick/madstork documentation built on Jan. 3, 2022, 8:34 p.m.