as_flextable.lm {flextable} | R Documentation |
Transform a 'lm' object into a flextable
Description
produce a flextable describing a
linear model produced by function lm
.
You can remove significance stars by setting options
options(show.signif.stars = FALSE)
.
Usage
## S3 method for class 'lm'
as_flextable(x, ...)
Arguments
x |
lm model |
... |
unused argument |
See Also
Other as_flextable methods:
as_flextable()
,
as_flextable.data.frame()
,
as_flextable.gam()
,
as_flextable.glm()
,
as_flextable.grouped_data()
,
as_flextable.htest()
,
as_flextable.kmeans()
,
as_flextable.merMod()
,
as_flextable.pam()
,
as_flextable.summarizor()
,
as_flextable.table()
,
as_flextable.tabular()
,
as_flextable.tabulator()
,
as_flextable.xtable()
Examples
if (require("broom")) {
lmod <- lm(rating ~ complaints + privileges +
learning + raises + critical, data = attitude)
ft <- as_flextable(lmod)
ft
}
[Package flextable version 0.9.6 Index]