tabularise_default.lm: Create a rich-formatted table from an lm object

View source: R/tabularise.lm.R

tabularise_default.lmR Documentation

Create a rich-formatted table from an lm object

Description

The default tabularise() method for lm objects create a minimalist table with result of the analysis in a rich-formatted tabular presentation.

Usage

## S3 method for class 'lm'
tabularise_default(data, ..., kind = "ft", env = parent.frame())

Arguments

data

An lm object

...

Additional arguments passed to tabularise_coef.lm()

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 that you can print in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange with the {flextable} functions.

Examples

iris_lm <- lm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise(iris_lm)

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