st_caption | R Documentation |
Set table caption
st_caption(x, text, ...)
x |
an stobject. |
text |
caption text to be parsed. |
... |
additional arguments passed to |
A short title for the table can be specified in one of two ways. First, the
short title can be specified by including it in brackets ([]
) as the
first characters in text
. Alternatively, short title text can get passed
separately into st_caption()
under the argument short
, which is
is eventually handled by as.caption()
.
By default, as.caption()
will repeat the short title at the start of the
main caption text. The user can pass repeat_short = FALSE
into
st_caption()
(and eventually to as.caption()
) to suppress this behavior.
tab <- st_new(stdata())
tab <- st_caption(tab, "[Full covariate model estimates]. Run number 101.")
tab$caption
text <- stable(tab)
text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.