huxtable (version 0.2.0)

caption_pos: Caption position

Description

Functions to get or set the table-level caption position property of a huxtable.

Usage

caption_pos(ht)
caption_pos(ht) <- value
set_caption_pos(ht, value)

Arguments

ht
A huxtable.
value
A length-one character vector which can be 'top', 'bottom' or NA for the default.

Value

For caption_pos, the caption_pos attribute. For set_caption_pos, the ht object.

See Also

caption

Examples

Run this code

ht <- huxtable(a = 1:3, b = 1:3)
caption_pos(ht) <-  'top'
caption_pos(ht)

Run the code above in your browser using DataLab