View source: R/xtable.likert.r
xtable.likert | R Documentation |
Create a LaTeX or HTML table of the [likert()] results.
## S3 method for class 'likert'
xtable(
x,
caption = NULL,
label = NULL,
align = NULL,
digits = NULL,
display = NULL,
auto = FALSE,
include.n = TRUE,
include.mean = TRUE,
include.sd = TRUE,
include.low = TRUE,
include.neutral = (x$nlevels%%2 != 0),
include.high = TRUE,
include.levels = TRUE,
include.missing = TRUE,
center = (x$nlevels - 1)/2 + 1,
ordered = TRUE,
...
)
x |
likert class object. |
caption |
the table caption. |
label |
the table label. |
align |
column alignments. |
digits |
number of digits to use for numeric columns. |
display |
column formats. |
auto |
Logical, indicating whether to apply automatic format when no value is passed to align, digits, or display (see [xtable::xtable()] for more information. |
include.n |
option to include n |
include.mean |
option to include mean |
include.sd |
option to include sd |
include.low |
option to include low |
include.neutral |
option to include neutral |
include.high |
option to include high |
include.levels |
option to include levels |
include.missing |
option to include missing levels. |
center |
specifies which level should be treated as the center. For example,
|
ordered |
whether the results should be ordered. See [summary.likert()] |
... |
other parameters passed to 'xtable'. |
xtable, print.xtable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.