table1: Generate an HTML table of descriptive statistics

View source: R/table1.R

table1R Documentation

Generate an HTML table of descriptive statistics

Description

Generate an HTML table of descriptive statistics

Usage

table1(
  x,
  data,
  file,
  css = system.file("table1_defaults_1.0", "table1_defaults.css", package = "table1"),
  ...
)

Arguments

x

An object, typically a formula or list of data.frames (see Details).

data

For the formula interface, a data.frame from which the variables in x should be taken.

file

optional file location to write table to

css

cascading style sheet to embed

...

Further arguments, passed to render.

Value

a washu_table1 object

Examples

## Not run: 
table1(~., mtcars, "Table 1. Descriptives.html")

## End(Not run)

the-mad-statter/washu documentation built on May 5, 2024, 10:26 a.m.