Open and copy html and paste into Excel to format tables for manuscript in MS Word.

e_lm_print_html_summary(
  fit = fit,
  n_digits = 3,
  n_digits_p = 4,
  filename_html = "table_model.html"
)

Arguments

fit

result of lm()

n_digits

number of digits to use for estimates in table

n_digits_p

number of digits to use for p-values in table

filename_html

filename.html to save html, NULL to not save

Value

html table to print within Rmd report

Examples

fit <-
  lm(
    mpg ~ cyl + disp + hp + drat + wt + qsec
  , data = dat_mtcars_e
  )
e_lm_print_html_summary(
    fit           = fit
  , n_digits_p    = 4
  , filename_html = NULL # NULL will not save html
  )