Learn R Programming

sjPlot (version 1.8.1)

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, weightBy = NULL, 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 list 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.

Details

See 'Details' in sjt.frq.

See Also

sjp.aov1

Examples

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

Run the code above in your browser using DataLab