View source: R/tabularise.glm.R
tabularise_glance.glm | R Documentation |
Turn the glance of glm object into a rich-formatted table with {flextable}. The table can be printed in different formats (HTML, LaTeX, Word, PowerPoint), or rearranged later on.
## S3 method for class 'glm'
tabularise_glance(
data,
header = TRUE,
title = NULL,
equation = TRUE,
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 passed to |
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 produced that you can print in different formats (HTML, LaTeX, Word, PowerPoint) or rearrange with the {flextable} functions.
iris_glm <- glm(data = iris, Petal.Length ~ Sepal.Length)
tabularise::tabularise$glance(iris_glm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.