Description Usage Format Value Methods Author(s) Examples
This class holds and manages accounts, transactions and categories. It can be ititialized with special RDS file or by add* methods. It also allows to save the state in RDS file. This file is a simple copy of private members.
1 |
R6Class
object.
object of R6Class
with budget storage and interface
methods
new(path = NULL)
Object creator. You can provide path to RDS file or initialize empty object
save(path)
Save budget to RDS file
addCategory(category, budgetCat = rep(private$budgetCats[1], length(category)))
Add transaction category(ies) to budget along with budget category
deleteCategory(category)
Delete transaction category(ies) from budget
getCategories()
Return category vector
moveCategory(oldCategory, newCategory)
Move old category to new one
updateSystemCategories()
Set system categories to valid values
addBudgetCategory(budgetCat)
Add transaction budget category(ies) to budget
deleteBudgetCategory(budgetCat)
Delete transaction budget category(ies) from budget
getBudgetCategories()
Return budget category vector
addAccount(account, initialBalance = rep(0, length(account)))
Add account(s) to budget
deleteAccount(account)
Delete account(s) from budget
renameAccount(account, newName)
Rename account
setAccountInitialBalance(account, initialBalance = rep(0, length(account)))
Set new account(s) initial balance(s)
getAccounts()
Return accounts vector
getAccountInitialBalances()
Return account initial balances vector
getAccountBalances()
Return account balances vector
addTransaction(account, transaction, autoSys = TRUE)
Add transaction(s) to account
deleteTransaction(account, trIds, autoSys = TRUE)
Delete transaction(s) from account
getTransactionTable(account)
Get transaction table for account
addReport(report)
Add report to budget
deleteReport(name)
Delete report from budget
getReport(name)
Getreport
Daniel Rodak
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.