tabularise_default.glm: Create a rich-formatted table from a glm object

View source: R/tabularise.glm.R

tabularise_default.glmR Documentation

Create a rich-formatted table from a glm object

Description

Create a rich-formatted table from a glm object

Usage

## S3 method for class 'glm'
tabularise_default(
  data,
  footer = TRUE,
  lang = getOption("data.io_lang", "en"),
  ...,
  kind = "ft",
  env = parent.frame()
)

Arguments

data

A glm object

footer

If TRUE (by default), add a footer to the table

lang

The natural language to use. The default value can be set with, e.g., options(data.io_lang = "fr") for French.

...

Additional arguments passed to tabularise_coef.glm()

kind

The kind of table to produce: "tt" for tinytable, or "ft" for flextable (default).

env

The environment where to evaluate the model.

Value

A flextable object is returned. You can print it in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange it with the {flextable} functions.

Examples

iris_glm <- glm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise(iris_glm)

SciViews/modelit documentation built on Nov. 24, 2024, 10:23 a.m.