View source: R/gt_add_divider.R
gt_add_divider | R Documentation |
gt
table.The gt_add_divider
function takes an existing gt_tbl
object and
adds borders or dividers to specific columns.
gt_add_divider(
gt_object,
columns,
sides = "right",
color = "grey",
style = "solid",
weight = px(2),
include_labels = TRUE
)
gt_object |
An existing gt table object of class |
columns |
Specific columns to apply color to, accepts either |
sides |
The border sides to be modified. Options include |
color, style, weight |
The border color, style, and weight. The |
include_labels |
A logical, either |
An object of class gt_tbl
.
library(gt) basic_divider <- head(mtcars) %>% gt() %>% gt_add_divider(columns = "cyl", style = "dashed")
2-11
Other Utilities:
add_text_img()
,
fa_icon_repeat()
,
fmt_pad_num()
,
fmt_pct_extra()
,
fmt_symbol_first()
,
generate_df()
,
gt_badge()
,
gt_double_table()
,
gt_duplicate_column()
,
gt_fa_column()
,
gt_fa_rank_change()
,
gt_fa_rating()
,
gt_fa_repeats()
,
gt_highlight_cols()
,
gt_highlight_rows()
,
gt_img_border()
,
gt_img_circle()
,
gt_img_multi_rows()
,
gt_img_rows()
,
gt_index()
,
gt_merge_stack_color()
,
gt_merge_stack()
,
gt_two_column_layout()
,
gtsave_extra()
,
img_header()
,
pad_fn()
,
tab_style_by_grp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.