View source: R/xtable-method.R
xtable.emmGrid | R Documentation |
xtable
for EMMsThese methods provide support for the xtable package, enabling
polished presentations of tabular output from emmeans
and other functions.
## S3 method for class 'emmGrid'
xtable(x, caption = NULL, label = NULL, align = NULL,
digits = 4, display = NULL, auto = FALSE, ...)
## S3 method for class 'summary_emm'
xtable(x, caption = NULL, label = NULL,
align = NULL, digits = 4, display = NULL, auto = FALSE, ...)
## S3 method for class 'xtable_emm'
print(x, type = getOption("xtable.type", "latex"),
include.rownames = FALSE, sanitize.message.function = footnotesize, ...)
x |
Object of class |
caption |
Passed to |
label |
Passed to |
align |
Passed to |
digits |
Passed to |
display |
Passed to |
auto |
Passed to |
... |
Arguments passed to |
type |
Passed to |
include.rownames |
Passed to |
sanitize.message.function |
Passed to |
The methods actually use xtableList
,
because of its ability to display messages such as those for P-value
adjustments. These methods return an object of class "xtable_emm"
–
an extension of "xtableList"
. Unlike other xtable
methods, the
number of digits defaults to 4; and degrees of freedom and t ratios
are always formatted independently of digits
. The print
method
uses print.xtableList
, and any ...
arguments are
passed there.
The xtable
methods return an xtable_emm
object, for which its print method is print.xtable_emm
.
if(requireNamespace("xtable"))
emm_example("xtable")
# Use emm_example("xtable", list = TRUE) # to just list the code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.