set-multiple: Set left, right, top and bottom properties

Description Usage Arguments Details Value See Also Examples

Description

These functions set left, right, top and/or bottom properties simultaneously for the specified cells.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Arguments

ht

A huxtable.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

value

Value(s) to set. Set to NA to reset to the default.

fn

A mapping function. See mapping-functions for details.

Details

Value

The modified huxtable.

See Also

borders, border-colors, border-styles, padding.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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")

huxtable documentation built on Feb. 15, 2021, 1:07 a.m.