bankAccount: 'bankAccount'

View source: R/bankAccount.R

bankAccountR Documentation

bankAccount

Description

Function which creates an instance of CurrentAccount.

Usage

bankAccount(
  start,
  balance = 0,
  accrued = 0,
  ir = 0,
  irFreq = "1 year",
  ext_transactions = NULL,
  int_transfers = NULL,
  perc_outflows = NULL,
  currency = "CHF",
  variable.rates = FALSE,
  ...
)

Arguments

start

Start date of the account

balance

Initial balance of the account

accrued

Accrued interest up to the start date

ir

Interest rate

irFreq

Interest rate frequency

ext_transactions

timeSeries object indicating ExternalTransactions

int_transfers

timeSeries object indicating InternalTransfers

perc_outflows

timeSeries object indicating PercentageOutflows

currency

Currency of the account

variable.rates

Logical, if the account has variable rates.

Value

An object of class CurrentAccount

Examples

cashflows <- timeSeries(c(1000,1000,30000,10000,-20000), units="CHF", 
                timeSequence(from="2014-04-01", by="year", length.out=5))
my.account <- bankAccount("2013-12-31", balance=50000, 
                         ext_transactions = cashflows, ir=0.02)


wbreymann/FEMS documentation built on May 6, 2024, 2:19 p.m.