Create regression tables that are easy to use and easy to read.
easytable is a workhorse table package for lm() and glm() models with predictable defaults across Word/HTML and LaTeX/PDF outputs.
easytable()
.docx and .csv
This is the development version of easytable.
install.packages(
"easytable",
repos = c("https://alfredo-hs.r-universe.dev",
"https://cloud.r-project.org")
)
library(easytable)
library(palmerpenguins)
m1 <- lm(body_mass_g ~ flipper_length_mm, data = penguins)
m2 <- lm(body_mass_g ~ flipper_length_mm + species, data = penguins)
m3 <- lm(body_mass_g ~ flipper_length_mm + species + island, data = penguins)
# Default output is Word/flextable (also prints in HTML contexts)
easytable(m1, m2, m3)
easytable(m1, m2, m3)
easytable(
m1, m2, m3,
model.names = c("Baseline", "With Species", "Full Model")
)
easytable(
m1, m2, m3,
control.var = c("species", "island")
)
easytable(
m1, m2, m3,
highlight = TRUE
)
easytable(
m1, m2, m3,
output = "latex"
)
easytable(
m1, m2, m3,
export.word = "mytable.docx",
export.csv = "mytable.csv"
)
easytable(m1, m2, robust.se = TRUE)
easytable(m1, m2, margins = TRUE)
easytable(m1, m2, robust.se = TRUE, margins = TRUE)
easytable currently supports the following models:
lm()glm()easytable enforces these defaults:
See DESIGN_PHILOSOPHY.md for the full contributor policy.
?easytable
vignette("penguins-tutorial", package = "easytable")
vignette("developer-roadmap", package = "easytable")
AI_NOTES.md
tests/README.md
_pkgdown.yml, pkgdown/index.md, and vignettes/.Hernandez Sanchez, A. (2026). easytable: Create Multi-Format Regression Tables. Version 2.1.1. https://doi.org/10.5281/zenodo.20155314
@misc{easytable2026,
title = {easytable},
subtitle = {Create Multi-Format Regression Tables},
author = {Hernandez Sanchez, Alfredo},
note = {Version 2.1.1},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.20155314},
url = {https://github.com/alfredo-hs/easytable}
}
This package was created as an education technology to facilitate statistics teaching. Many thanks to the students at Vilnius University and the University of Bucaramanga for their feedback on usability and design. The development of this package was assisted by AI coding tools such as Gemini 3.1 Pro, Claude 4.5 Sonnet, and ChatGPT 5.3 Codex for code debugging, documentation updates, and package restructuring.