bankAccount | R Documentation |
bankAccount
Function which creates an instance of CurrentAccount
.
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,
...
)
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. |
An object of class CurrentAccount
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.