Get the Open Office XML table tag content from a gt_tbl
object as as a
single-element character vector.
Usage
as_word(
data,
align = "center",
caption_location = c("top", "bottom", "embed"),
caption_align = "left",
split = FALSE,
keep_with_next = TRUE
)
Arguments
- data
A table object that is created using the
gt()
function.- align
An option for table alignment. Can either be
"center"
(the default),"left"
, or"right"
.- caption_location
Determines where the caption should be positioned. This can either be
"top"
(the default),"bottom"
, or"embed"
.- caption_align
Determines the alignment of the caption. This is either
"left"
(the default),"center"
, or"right"
. This option is only used whencaption_location
is not set as"embed"
.- split
A
TRUE
orFALSE
(the default) value that indicates whether to activate the Word optionAllow row to break across pages
.- keep_with_next
A
TRUE
(the default) orFALSE
value that indicates whether a table should use Word optionkeep rows together
.
See also
Other table export functions:
as_latex()
,
as_raw_html()
,
as_rtf()
,
extract_cells()
,
extract_summary()
,
gtsave()