The Grammar of Tables
Overview
Provides an extensible formula system to quickly and easily create production quality tables. The processing steps are a formula parser, statistical content generation from data as defined by formula, followed by rendering into a table. Each step of the processing is separate and user definable thus creating a set of composable building blocks for highly customizable table generation. A user is not limited by any of the choices of the package creator other than the formula grammar. For example, one could chose to add a different S3 rendering function and output a format not provided in the default package, or possibly one would rather have Gini coefficients for their statistical content in a resulting table. Routines to achieve New England Journal of Medicine style, Lancet style and Hmisc::summaryM() statistics are provided. The package contains rendering for HTML5, Rmarkdown and an indexing format for use in tracing and tracking are provided.
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-19
Show 4 earlier changesHide 4 earlier changes
- WARNING12 OK, 1 WARNING2026-06-17
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 93
- Examples that run
- 100%29 run in a plain check
- Exported functions with examples
- 42%
- Documented parameters
- 100%
- Return-value docs
- 72%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 83
- Median days to close, 50 most recently updated closed PRs
- 101
Stars over time
Forks over time
Issues over time
PRs over time
Checks run against github.com/spgarbet/tangram on 2026-10-21.
No development-tooling practices detected in the upstream repository.
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.8.3Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-01-26
- 0.8.22023-01-26 · diff ↗
- archivedRemoved from CRAN2022-12-09issues were not corrected in time
- 0.8.1
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2020-04-29
- 0.7.12020-04-29 · diff ↗ ·
removed 13 exports
cell_chi2, cell_estimate, cell_fraction, cell_fstat, cell_iqr, cell_named_values, cell_range, cell_spearman, cell_studentt, hmisc_style, nejm_style, table_builder, table_builder_applyadded 37 exports
add_footnote, hmisc, hmisc_cell, hmisc_chi2, hmisc_fraction, hmisc_fstat, hmisc_iqr, hmisc_p, hmisc_spearman, hmisc_wilcox, insert_column, lancet, lancet_cell, lancet_fraction, lancet_mean_sd, latexify, nejm, nejm_cell, nejm_fraction, nejm_iqr, replace_cell, select_col, select_row, set_caption, set_footnote, set_id, set_style, smd, smd_cell, smd_compare and 7 more - RR 4.0.0 released · 2020-04-24
- archivedRemoved from CRAN2020-04-09check problems were not corrected despite reminders
- RR 3.6.0 released · 2019-04-26
Show 6 earlier eventsHide 6 earlier events
- 0.42018-06-04 · diff ↗ ·
added 6 exports
add_indent, csv, insert_row, nejm_style, proc_tab, summarize_nejm_horz - RR 3.5.0 released · 2018-04-23
- 0.3.2
- 0.32017-06-27 · diff ↗ ·
removed 11 exports
cell_quantile, cell_table, form, new_table_builder, summary_frame, summary_rms, summary_table, tg, tg_N, tg_fraction, tg_quantileadded 9 exports
cell, cell_iqr, cell_named_values, cell_range, cols, render_f, rows, table_builder, tangram - 0.2.62017-05-03
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-05-03
- Total releases
- 8 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 11 KB / 1 file
- Download size
- 151 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tangram")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.