
Last chance! 50% off unlimited learning
Sale ends in
produce a flextable describing a
linear model produced by function lm
.
# S3 method for lm
as_flextable(x, ...)
lm model
unused argument
Other as_flextable methods:
as_flextable.glm()
,
as_flextable.grouped_data()
,
as_flextable.htest()
,
as_flextable.xtable()
,
as_flextable()
# NOT RUN {
if(require("broom")){
lmod <- lm(rating ~ complaints + privileges +
learning + raises + critical, data=attitude)
ft <- as_flextable(lmod)
ft
}
# }
Run the code above in your browser using DataLab