Set left, right, top and bottom properties
These functions set left, right, top and/or bottom properties simultaneously for the specified cells.
set_all_borders(ht, row, col, value = 0.4) map_all_borders(ht, row, col, fn) set_all_border_colors(ht, row, col, value) map_all_border_colors(ht, row, col, fn) set_all_border_styles(ht, row, col, value) map_all_border_styles(ht, row, col, fn) set_all_padding(ht, row, col, value) map_all_padding(ht, row, col, fn) set_tb_padding(ht, row, col, value) map_tb_padding(ht, row, col, fn) set_lr_padding(ht, row, col, value) map_lr_padding(ht, row, col, fn) set_tb_borders(ht, row, col, value) map_tb_borders(ht, row, col, fn) set_lr_borders(ht, row, col, value) map_lr_borders(ht, row, col, fn) set_tb_border_colors(ht, row, col, value) map_tb_border_colors(ht, row, col, fn) set_lr_border_colors(ht, row, col, value) map_lr_border_colors(ht, row, col, fn) set_tb_border_styles(ht, row, col, value) map_tb_border_styles(ht, row, col, fn) set_lr_border_styles(ht, row, col, value) map_lr_border_styles(ht, row, col, fn)
ht |
A huxtable. |
row |
A row specifier. See rowspecs for details. |
col |
An optional column specifier. |
value |
Value(s) to set. Set to |
fn |
A mapping function. See mapping-functions for details. |
set_all_*
functions set top, bottom, left and right properties.
set_tb_*
functions set top and bottom properties.
set_lr_*
functions set left and right properties.
The modified huxtable.
ht <- as_hux(jams) ht <- set_all_borders(ht) ht ht <- set_all_border_colors(ht, "red") ht ht <- set_all_border_styles(ht, "double") ht <- set_all_padding(ht, 1:3, 1:2, "20px") ht <- set_tb_padding(ht, 10) ht <- set_tb_borders(ht) set_tb_border_colors(ht, "red") set_tb_border_styles(ht, "double")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.