addAcctTxn: Add capital account transactions, such as capital additions...

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


addAcctTxn(Account, TxnDate, TxnType = c("Additions", "Withdrawals",
  "Interest"), Amount, ..., verbose = TRUE)



Account name, as string


transaction date as ISO 8601, e.g., '2008-09-01' or '2010-01-05 09:54:23.12345'


string indicating the type of account transaction, only "Addition", "Withdrawal", or "Interest" are currently supported


As of now, the currency of the transaction MUST MATCH the currency of the Account. Patches welcome.


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.


any other passthrough parameters


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

See Also

initAcct, updateAcct, updateEndEq

blotter documentation built on April 15, 2017, 9:41 a.m.