kbl_by_types {businessPlanR} | R Documentation |
Format table from collection of types of operations objects
Description
This method uses the kableExtra
package for table formatting.
Usage
kbl_by_types(
obj,
types,
resolution = c("year", "quarter", "month"),
currency = "€",
digits = 0,
DIY = FALSE,
font_size = NULL,
latex_options = "striped",
stripe_color = "gray!6",
years = get_period(obj, years = TRUE),
sum_names = c(subtotal = "Subtotal", total = "Total"),
type_colors = c(color = "white", background = "grey"),
space = c(html = " ", latex = "\\,"),
...
)
## S4 method for signature 'operations'
kbl_by_types(
obj,
types,
resolution = c("year", "quarter", "month"),
currency = "€",
digits = 0,
DIY = FALSE,
font_size = NULL,
latex_options = "striped",
stripe_color = "gray!6",
years = get_period(obj, years = TRUE),
sum_names = c(subtotal = "Subtotal", total = "Total"),
type_colors = c(color = "white", background = "grey"),
space = c(html = " ", latex = "\\,"),
...
)
Arguments
obj |
An object of class |
types |
A named character vector of types to fetch from |
resolution |
One of |
currency |
Character defining a currency symbol. |
digits |
Integer, round values to number of digits. |
DIY |
Logical,
if |
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. |
sum_names |
A named character vector with two entries,
|
type_colors |
A named character vector with two entries,
|
space |
Character, a space definition to put between currency and value. |
... |
Additional arguments passed on to |
Value
An object of class kable
.