Caption text for a table (for the apaquarto tbl-cap settings line)
Source: R/quarto.R
apa_caption.RdReturns the table title as a plain-text string, suitable for pasting into
the tbl-cap settings line of a table chunk (a small block of R
code) in an apaquarto document (a Quarto document using the apaquarto
APA-style extension). Returns "" if the table has no title. Does
not include "Table N".
See also
apa.quarto.new("my-paper") starts an APA manuscript with the
apaquarto extension already installed; apa.quarto.setup()
installs the extension into a project you already have. A step-by-step
guide to placing apaTables tables in Quarto documents also comes
installed with the package. To open it, type:
vignette("apaquarto-usage", package = "apaTables")Examples
my_table <- apa.cor.table(attitude)
apa_caption(my_table)
#> [1] "Descriptive Statistics and Correlations"