Title: | Pretty Console Output for Tables |
---|---|
Description: | Generates pretty console output for tables allowing for full customization of cell colors, font type, borders and many others attributes. It also supports 'multibyte' characters and nested tables. |
Authors: | Daniel Falbel [aut, cre], Pranav Srinivas Kumar [aut, cph] (Author of included Tabulate code), Martin Moene [aut, cph] (Author of included Variant-lite code), Ihor Kalnytskyi [aut, cph] (Author of included Termcolor code), RStudio [cph] |
Maintainer: | Daniel Falbel <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0.9000 |
Built: | 2024-11-06 04:27:16 UTC |
Source: | https://github.com/mlverse/tabulate |
Allows changing display characteristics of tables, columns, rows and cells.
format_background_color(x, value) format_border(x, value) format_border_background_color(x, value) format_border_bottom(x, value) format_border_bottom_background_color(x, value) format_border_bottom_color(x, value) format_border_color(x, value) format_border_left(x, value) format_border_left_background_color(x, value) format_border_left_color(x, value) format_border_right(x, value) format_border_right_background_color(x, value) format_border_right_color(x, value) format_border_top(x, value) format_border_top_background_color(x, value) format_border_top_color(x, value) format_color(x, value) format_column_separator(x, value) format_column_separator_background_color(x, value) format_column_separator_color(x, value) format_corner(x, value) format_corner_background_color(x, value) format_corner_bottom_left(x, value) format_corner_bottom_left_background_color(x, value) format_corner_bottom_left_color(x, value) format_corner_bottom_right(x, value) format_corner_bottom_right_background_color(x, value) format_corner_bottom_right_color(x, value) format_corner_color(x, value) format_corner_top_left(x, value) format_corner_top_left_background_color(x, value) format_corner_top_left_color(x, value) format_corner_top_right(x, value) format_corner_top_right_background_color(x, value) format_corner_top_right_color(x, value) format_font_align(x, value) format_font_background_color(x, value) format_font_color(x, value) format_font_style(x, value) format_height(x, value) format_hide_border(x) format_hide_border_bottom(x) format_hide_border_left(x) format_hide_border_right(x) format_hide_border_top(x) format_locale(x, value) format_multi_byte_characters(x, value) format_padding(x, value) format_padding_bottom(x, value) format_padding_left(x, value) format_padding_right(x, value) format_padding_top(x, value) format_show_border(x) format_show_border_bottom(x) format_show_border_left(x) format_show_border_right(x) format_show_border_top(x) format_width(x, value)
format_background_color(x, value) format_border(x, value) format_border_background_color(x, value) format_border_bottom(x, value) format_border_bottom_background_color(x, value) format_border_bottom_color(x, value) format_border_color(x, value) format_border_left(x, value) format_border_left_background_color(x, value) format_border_left_color(x, value) format_border_right(x, value) format_border_right_background_color(x, value) format_border_right_color(x, value) format_border_top(x, value) format_border_top_background_color(x, value) format_border_top_color(x, value) format_color(x, value) format_column_separator(x, value) format_column_separator_background_color(x, value) format_column_separator_color(x, value) format_corner(x, value) format_corner_background_color(x, value) format_corner_bottom_left(x, value) format_corner_bottom_left_background_color(x, value) format_corner_bottom_left_color(x, value) format_corner_bottom_right(x, value) format_corner_bottom_right_background_color(x, value) format_corner_bottom_right_color(x, value) format_corner_color(x, value) format_corner_top_left(x, value) format_corner_top_left_background_color(x, value) format_corner_top_left_color(x, value) format_corner_top_right(x, value) format_corner_top_right_background_color(x, value) format_corner_top_right_color(x, value) format_font_align(x, value) format_font_background_color(x, value) format_font_color(x, value) format_font_style(x, value) format_height(x, value) format_hide_border(x) format_hide_border_bottom(x) format_hide_border_left(x) format_hide_border_right(x) format_hide_border_top(x) format_locale(x, value) format_multi_byte_characters(x, value) format_padding(x, value) format_padding_bottom(x, value) format_padding_left(x, value) format_padding_right(x, value) format_padding_top(x, value) format_show_border(x) format_show_border_bottom(x) format_show_border_left(x) format_show_border_right(x) format_show_border_top(x) format_width(x, value)
x |
A table, column, row or cell. |
value |
The value assumed by the selected parameter. |
The same as the input invisibly.
table <- tabulate_table() table %>% table_add_row("hello") %>% table_add_row("world") table %>% format_hide_border_bottom() %>% format_width(50) table
table <- tabulate_table() table %>% table_add_row("hello") %>% table_add_row("world") table %>% format_hide_border_bottom() %>% format_width(50) table
Print two tables showing most of possible functionalities in tabulate.
tabulate_demo()
tabulate_demo()
NULL
invisibly.
Create a new tabulate table
tabulate_table() table_add_row(table, row)
tabulate_table() table_add_row(table, row)
table |
A table created with |
row |
A character vector or a tabulate table. |
A tabulate_table
.
table_add_row
: Adds rows to the table.
table <- tabulate_table() %>% table_add_row("hello") %>% table_add_row("world") table
table <- tabulate_table() %>% table_add_row("hello") %>% table_add_row("world") table