Description Usage Arguments Details Author(s) See Also
For the specified Account, take in the date, amount, and type of transaction and append it to the correct list in the account object
1 2 | addAcctTxn(Account, TxnDate, TxnType = c("Additions", "Withdrawals",
"Interest"), Amount, ..., verbose = TRUE)
|
Account |
Account name, as string |
TxnDate |
transaction date as ISO 8601, e.g., '2008-09-01' or '2010-01-05 09:54:23.12345' |
TxnType |
string indicating the type of account transaction, only "Addition", "Withdrawal", or "Interest" are currently supported |
Amount |
As of now, the currency of the transaction MUST MATCH the currency of the Account. Patches welcome. |
... |
any other passthrough parameters |
verbose |
If TRUE (default) the function prints the elements of the transaction in a line to the screen, e.g., "2007-01-08 Withdrawal 15,012,235". Suppress using FALSE. |
Adds capital transactions to a rudimentary transactions
table in the Account object. This may be useful when
tracking the denominator of returns when there are changes
to the account's capital or significant interest income. In
the Account$summary table, there are several placeholder
columns that mimic the CFTC's 13-column report. Columns of
interest here are "Additions", "Withdrawals", and
"Interest". Transactions added with this function will be
added into the appropriate one of three slots in the
Account object (Account$additions, Account$withdrawals, or
Account$Interest), which contains an xts object of
individual transactions with a date and amount. The
updateAcct
function will read the
transactions from each list in turn, aggregate them by the
specified date scope, and slot them into the
Account$summary
table as it's built.
updateEndEq
should then just work.
Peter Carl
initAcct
, updateAcct
,
updateEndEq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.