| caption {huxtable} | R Documentation |
Functions to get or set the table-level caption property of a huxtable.
caption(ht) caption(ht) <- value set_caption(ht, value)
ht |
A huxtable. |
value |
A length-one character vector. Set to |
Captions are not escaped. See the example for a workaround.
For caption, the caption attribute.
For set_caption, the ht object.
ht <- huxtable(a = 1:3, b = 1:3)
caption(ht) <- 'An example table'
caption(ht)
print_screen(ht)
ht <- hux(a = 1:2, b = 1:2)
caption(ht) <- sanitize('Make $$$ with us', type = 'latex') # escape caption characters