powered by
By default, captions are displayed above the table. You can change this with caption_pos().
caption_pos()
caption(ht) caption(ht) <- value set_caption(ht, value)
caption() returns the caption property. set_caption() returns the modified huxtable.
caption()
caption
set_caption()
A huxtable.
A string. Set to NA to reset to the default, which is "NA".
NA
"NA"
Captions are not escaped. See the example for a workaround.
Other caption properties: caption_pos(), caption_width()
caption_width()
set_caption(jams, "Pots of jam for sale") # escape caption characters: caption(jams) <- sanitize( "Make $$$ with jam", type = "latex")
Run the code above in your browser using DataLab