View source: R/tabularise.lm.R
tabularise_coef.lm | R Documentation |
This function extracts and formats the table of coefficients from an lm
object, similar to stats::coef()
, but in a rich-formatted table using
{flextable}.
## S3 method for class 'lm'
tabularise_coef(
data,
header = TRUE,
title = NULL,
equation = header,
auto.labs = TRUE,
origdata = NULL,
labs = NULL,
lang = getOption("data.io_lang", "en"),
...,
kind = "ft",
env = parent.frame()
)
data |
An lm object |
header |
If |
title |
If |
equation |
If |
auto.labs |
If |
origdata |
The original data set this model was fitted to. By default it
is |
labs |
Labels to change the names of elements in the |
lang |
The natural language to use. The default value can be set with,
e.g., |
... |
Additional arguments |
kind |
The kind of table to produce: "tt" for tinytable, or "ft" for flextable (default). |
env |
The environment where to evaluate lazyeval expressions (unused for now). |
A flextable object that you can print in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange with the {flextable} functions.
iris_lm <- lm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise$coef(iris_lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.