kable_bpR {businessPlanR} | R Documentation |
Format table from condensed objects
Description
This method uses the kableExtra
package for table formatting.
Usage
kable_bpR(
obj,
model = get_model(),
resolution = c("year", "quarter", "month"),
keep_types = TRUE,
detailed = FALSE,
cashflow = FALSE,
currency = "€",
DIY = FALSE,
longtable_clean_cut = TRUE,
font_size = NULL,
latex_options = "striped",
stripe_color = "gray!6",
years = get_period(obj, years = TRUE),
detail_names = c(revenue = "Revenue", expense = "Exepense"),
detail_colors = c(color = "white", background = "grey"),
cf_init = 0,
cf_names = c(begin = "Begin", end = "End"),
space = c(html = " ", latex = "\\,"),
detail_width,
...
)
## S4 method for signature 'operations'
kable_bpR(
obj,
model = get_model(),
resolution = c("year", "quarter", "month"),
keep_types = TRUE,
detailed = FALSE,
cashflow = FALSE,
currency = "€",
DIY = FALSE,
longtable_clean_cut = TRUE,
font_size = NULL,
latex_options = "striped",
stripe_color = "gray!6",
years = get_period(obj, years = TRUE),
detail_names = c(revenue = "Revenue", expense = "Exepense"),
detail_colors = c(color = "white", background = "grey"),
cf_init = 0,
cf_names = c(begin = "Begin", end = "End"),
space = c(html = " ", latex = "\\,"),
detail_width,
...
)
## S4 method for signature 'loan'
kable_bpR(
obj,
resolution = c("month", "quarter", "year"),
currency = "€",
DIY = FALSE,
font_size = NULL,
latex_options = "striped",
stripe_color = "gray!6",
loan_names = c(balance_start = "Balance start", interest = "Interest", principal =
"Principal", total = "Total", cumsum = "Cumulated", balance_remain =
"Balance remain"),
space = c(html = " ", latex = "\\,"),
...
)
## S4 method for signature 'transaction_plan'
kable_bpR(
obj,
resolution = c("month", "quarter", "year"),
keep_types = FALSE,
currency = "€",
DIY = FALSE,
longtable_clean_cut = TRUE,
font_size = NULL,
latex_options = "basic",
stripe_color = "gray!6",
years = get_period(obj, years = TRUE),
dep_names = c(investment = "Investment", depreciation = "Depreciation", value =
"Value", sum = "Sum"),
loan_names = c(balance_start = "Balance start", interest = "Interest", principal =
"Principal", total = "Total", cumsum = "Cumulated", balance_remain =
"Balance remain", sum = "Sum"),
space = c(html = " ", latex = "\\,"),
zeroes = c(html = "#C0C0C0", latex = "gray!25"),
...
)
Arguments
obj |
An object of class |
model |
A named list of named lists describing the stepwise accounting rules
for all data in in |
resolution |
One of |
keep_types |
Logical,
whether the returned data frame should keep the intermediate results
for each relevant type of transaction. This will add a column |
detailed |
Logical, supersedes |
cashflow |
Logical,
whether the |
currency |
Character defining a currency symbol. |
DIY |
Logical,
if |
longtable_clean_cut |
Passed to |
font_size |
Passed to |
latex_options |
Passed to |
stripe_color |
Passed to |
years |
Character (or numeric) vector defining the year(s) to be represented in the output. This is intended to be useful for splitting up quarterly or monthly output. |
detail_names |
A named character vector with two entries,
|
detail_colors |
A named character vector with two entries,
|
cf_init |
Numeric,
used as the initial value for cash flow calculations if |
cf_names |
Character vector with two entries named |
space |
Character, a space definition to put between currency and value. |
detail_width |
Optional vector of length 3,
if given defined the width of the three categorial columns,
|
... |
Additional arguments passed on to |
loan_names |
Like |
dep_names |
A named character vector with four entries, |
zeroes |
Named character vector defining the text color to use for zero amounts, for both LaTeX and HTML format. |
Value
An object of class kable
.