Produces a Word / PowerPoint-friendly flextable with the
caption and note wired in. Requires flextable (in Suggests).
Usage
# S3 method for class 'apa_table'
as_flextable(x, ...)Arguments
- x
An
apa_tableobject fromapa_table().- ...
Additional arguments reserved for future use.
Examples
tbl <- structure(
list(
table = data.frame(Term = c("Rater A", "Rater B"), Estimate = c(-0.12, 0.18)),
caption = "Facet estimates",
note = "Toy values for formatting only."
),
class = "apa_table"
)
if (requireNamespace("flextable", quietly = TRUE)) {
invisible(as_flextable(tbl))
}