Easytable
An R package for creating docx friendly regression tables
Install / Use
/learn @alfredo-hs/EasytableREADME
easytable <img src="man/figures/logo.png" align="right" width="190"/>
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.
Why easytable
- One main function:
easytable() - Code that is easy to use and tables that are easy to read
- Coherent output style across formats
- Optional export to
.docxand.csv - Control-variable indicators (like Stata)
Install
To install easytable please run the command below:
install.packages("easytable", repos = c("https://alfredo-hs.r-universe.dev/easytable","https://cloud.r-project.org"))
Quick Start (Penguins)
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)
Core Usage Patterns
1) Basic table
easytable(m1, m2, m3)
2) Custom model names
easytable(
m1, m2, m3,
model.names = c("Baseline", "With Species", "Full Model")
)
3) Control indicators
easytable(
m1, m2, m3,
control.var = c("species", "island")
)
4) Highlight significant coefficients
easytable(
m1, m2, m3,
highlight = TRUE
)
5) LaTeX output
easytable(
m1, m2, m3,
output = "latex"
)
6) Export files
easytable(
m1, m2, m3,
export.word = "mytable.docx",
export.csv = "mytable.csv"
)
Advanced Options
Robust standard errors
easytable(m1, m2, robust.se = TRUE)
Marginal effects
easytable(m1, m2, margins = TRUE)
Robust SE + marginal effects
easytable(m1, m2, robust.se = TRUE, margins = TRUE)
Supported Model Classes
Current stable scope:
lmglm
Planned later:
plmand other model classes
Design Invariants
easytable enforces these defaults:
- Coefficient and SE share one cell with a real line break.
- Zebra striping applies only to coefficient rows.
- No per-coefficient horizontal rules.
- Exactly one divider between coefficient rows and model-stat rows.
- Control indicators belong to the model-stat block.
See DESIGN_PHILOSOPHY.md for the full contributor policy.
Documentation
- Package site: https://alfredo-hs.github.io/easytable/
- Function help:
?easytable - Tutorial article:
vignette("penguins-tutorial", package = "easytable") - Developer roadmap:
vignette("developer-roadmap", package = "easytable") - Agent handoff notes:
AI_NOTES.md - Testing protocol:
tests/README.md
Website Deployment
- pkgdown source is defined in
_pkgdown.yml,pkgdown/index.md, andvignettes/. - Automated build/deploy runs through
.github/workflows/pkgdown.yaml. - Recommended GitHub Pages source is the
gh-pagesbranch root.
Citation
Hernandez Sanchez, A. (2026). easytable: Create Multi-Format Regression Tables.
R package version 2.1.0. https://doi.org/10.5281/zenodo.18673550
Acknowledgements
The development of this package was assisted by AI coding tools such as Claude 4.5 Sonnet and ChatGPT 5.3 Codex for code debugging, documentation updates, and package restructuring.
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
