Learn R Programming

sjPlot (version 1.7)

sjt.grpmean: Show grouped means as HTML table

Description

Computes mean, sd and se for each sub-group (indicated by varGrp) of varCount and prints the result as HTML table.

Usage

sjt.grpmean(varCount, varGrp, rowLabels = NULL, digits = 2,
  digits.summary = 3, file = NULL, encoding = NULL, CSS = NULL,
  useViewer = TRUE, no.output = FALSE, remove.spaces = TRUE)

Arguments

Value

Invisibly returns a structure with
  • the data frame with the description information (df),
  • the web page style sheet (page.style),
  • the web page content (page.content),
  • the complete html-output (output.complete) and
  • the html-table with inlin-css for use with knitr (knitr)
for further use.

See Also

sjp.aov1

Examples

Run this code
data(efc)
sjt.grpmean(efc$c12hour,
            efc$e42dep)

Run the code above in your browser using DataLab