st_wrap | R Documentation |
Use this function to wrap stable
or stable_long
objects so they can be
included inline in an Rmarkdown document. Typically, call st_asis()
(see
examples).
st_wrap(x, ...)
## Default S3 method:
st_wrap(
x,
con = stdout(),
table = TRUE,
center = TRUE,
landscape = is_lscape(x),
caption = NULL,
short = NULL,
float = c("H", "!ht"),
context = c("rmd", "tex"),
asis = FALSE,
...
)
## S3 method for class 'stable_long'
st_wrap(x, table = FALSE, ...)
## S3 method for class 'pmtable'
st_wrap(x, ...)
pt_wrap(x, ...)
st_asis(
x,
...,
caption = cap_main(x),
short = cap_short(x),
asis = TRUE,
con = NULL
)
st_latex(x, con = stdout(), center = TRUE, context = c("rmd", "tex"))
x |
an object that inherits from |
... |
not used |
con |
where to write the output |
table |
if |
center |
if |
landscape |
if |
caption |
the long table description |
short |
the short table description |
float |
the float specifier to if a |
context |
if |
asis |
if |
st_use_knit_deps()
## Not run:
# this is only needed in an Rmd environment
library(dplyr)
stdata() %>% stable() %>% st_asis()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.