# fit model
mod <- lm(mpg ~ wt + qsec, data = mtcars)
modsumm <- summary(mod)
# summarize model fit with tidiers
tidy(mod, conf.int = TRUE)
# equivalent to the above
tidy(modsumm, conf.int = TRUE)
glance(mod)
# mostly the same, except for a few missing columns
glance(modsumm)
Run the code above in your browser using DataLab