Shows the results of a Mann-Whitney-U-test as HTML table. The results
from the Mann-Whitney-test are obtained by the mwu
function from the sjstats-package.
sjt.mwu(x, title = NULL, altr.row.col = TRUE, CSS = NULL,
encoding = NULL, file = NULL, use.viewer = TRUE, no.output = FALSE,
remove.spaces = TRUE)
Results of a Mann-Whitney-U test, provided by mwu
. See 'Examples'.
Table caption, as character vector.
Logical, if TRUE
, alternating rows are highlighted with a light gray
background color.
A list
with user-defined style-sheet-definitions, according to the
official CSS syntax. For more details,
see this package-vignette, or 'Details' in
sjt.frq
.
String, indicating the charset encoding used for variable and
value labels. Default is NULL
, so encoding will be auto-detected
depending on your platform (e.g., "UTF-8"
for Unix and "Windows-1252"
for
Windows OS). Change encoding if specific chars are not properly displayed (e.g. German umlauts).
Destination file, if the output should be saved as file.
If NULL
(default), the output will be saved as temporary file and
openend either in the IDE's viewer pane or the default web browser.
Logical, if TRUE
, the HTML table is shown in the IDE's viewer pane. If
FALSE
or no viewer available, the HTML table is opened in a web browser.
Logical, if TRUE
, the html-output is neither opened in a browser nor shown in
the viewer pane and not even saved to file. This option is useful when the html output
should be used in knitr
documents. The html output can be accessed via the return
value.
Logical, if TRUE
, leading spaces are removed from all lines in the final string
that contains the html-data. Use this, if you want to remove parantheses for html-tags. The html-source
may look less pretty, but it may help when exporting html-tables to office tools.
Invisibly returns a list
with
the data frame with the description information (data
),
the web page style sheet (page.style
),
the web page content (page.content
),
the complete html-output (output.complete
) and
the html-table with inline-css for use with knitr (knitr
)
for further use.
See 'Details' in sjt.frq
.
# NOT RUN {
library(sjstats)
data(efc)
sjt.mwu(mwu(efc$e17age, efc$e42dep))
# }
Run the code above in your browser using DataLab