powered by
Functions to get or set the table-level caption property of a huxtable.
caption(ht) caption(ht) <- value set_caption(ht, value)
A huxtable.
A length-one character vector. Set to NA to reset to the default, which is NA.
NA
For caption, the caption property. For set_caption, the modified huxtable.
caption
set_caption
Captions are not escaped. See the example for a workaround.
caption_pos()
# NOT RUN { caption(jams) <- "An example table" caption(jams) jams # escape caption characters: caption(jams) <- sanitize( "Make $$$ with jam", type = "latex") # }
Run the code above in your browser using DataLab