View source: R/tabularise.glm.R
tabularise_coef.glm | R Documentation |
Extract and format the table of coefficients from a glm object, similar
to stats::coef()
, but in a rich-formatted flextable object.
## S3 method for class 'glm'
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 |
A glm 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 (not used yet). |
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 is returned. You can print it in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange it with the {flextable} functions.
iris_glm <- glm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise$coef(iris_glm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.