set-multiple {huxtable} | R Documentation |
Set left, right, top and bottom properties
Description
These functions set left, right, top and/or bottom properties simultaneously for the specified cells.
Usage
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)
Arguments
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. |
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.
Value
The modified huxtable.
See Also
borders, border-colors, border-styles, padding.
Examples
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")
[Package huxtable version 5.5.6 Index]