Package: tsg 0.1.4

tsg: Generate Publication-Ready Statistical Tables

A collection of functions for generating frequency tables and cross-tabulations of categorical variables. The resulting tables can be exported to various formats (Excel, PDF, HTML, etc.) with extensive formatting and layout customization options.

Authors:Bhas Abdulsamad [aut, cre, cph]

tsg_0.1.4.tar.gz
tsg_0.1.4.zip(r-4.7-any)tsg_0.1.4.zip(r-4.6-any)tsg_0.1.4.zip(r-4.5-any)
tsg_0.1.4.tgz(r-4.6-any)tsg_0.1.4.tgz(r-4.5-any)
tsg_0.1.4.tar.gz(r-4.7-any)tsg_0.1.4.tar.gz(r-4.6-any)
tsg_0.1.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
tsg/json (API)

# Install 'tsg' in R:
install.packages('tsg', repos = c('https://yng-me.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yng-me/tsg/issues

Pkgdown/docs site:https://yng-me.github.io

Datasets:

On CRAN:

Conda:

5.86 score 1 stars 1 packages 8 scripts 879 downloads 22 exports 89 dependencies

Last updated from:27d78a62d5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK201
source / vignettesOK261
linux-release-x86_64OK199
macos-release-arm64OK157
macos-oldrel-arm64OK155
windows-develOK127
windows-releaseOK129
windows-oldrelOK146
wasm-releaseOK156

Exports:add_column_totaladd_facadeadd_facade_altadd_footnoteadd_row_totaladd_source_noteadd_table_subtitleadd_table_titlecollapse_listconvert_factorgenerate_crosstabgenerate_frequencygenerate_outputgenerate_templateget_tsg_facaderemove_labelremove_labelsrename_labelwrite_docxwrite_htmlwrite_pdfwrite_xlsx

Dependencies:askpassbase64encbigDbitbit64bitopsbslibcachemclicliprcommonmarkcpp11crayoncurldata.tabledigestdplyrevaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverforcatsfsgdtoolsgenericsgluegthavenhighrhmshtmltoolshtmlwidgetsjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownmemoisemimeofficeropensslopenxlsxpillarpkgconfigprettyunitsprogresspurrrqpdfR6raggrappdirsRColorBrewerRcppreactablereactRreadrrlangrmarkdownsassscalesstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttinytextzdbutf8uuidV8vctrsviridisLitevroomwithrxfunxml2yamlzip

Customizing How Your Tables Look
Using a built-in style | Tweaking a few settings with add_facade() | Common tweaks | Applying the same tweaks across formats | Making your own style file | Step 1 — generate the template | Step 2 — edit the file | Step 3 — use your style | Programmatic style overrides | Style property reference | Table-level settings (full list) | Colour values | Section names

Last update: 2026-05-05
Started: 2026-05-05

Getting Started with tsg
The sample dataset | Count values in a column | Count several columns at once | Show only the top categories | Control how rows are sorted | Include or exclude missing values | Combine similar columns into one table | Other options | Compare two columns in a grid (cross-tabulation) | Percentages by column instead of by row | Cross-tabulate against several columns at once | Break down results by a group | Save your table to a file | Add a title and notes | Change the look of your table | Save to other formats

Last update: 2026-05-05
Started: 2025-10-22

Grouped Tables and Side-by-Side Comparisons
Get a separate table for each group | Add a grand total to grouped tables | Flat table with total rows inserted | Separate tables with a total entry per level | Change the total label | Compare several Yes/No indicators side by side | Basic usage | Count a different response level | Combining with grouping | Full comparison table with hierarchical columns | Basic stacked table | Custom label separator | Three or more column variables | Export many tables to one Excel file | Basic multi-sheet export | Add an index sheet | Save each table to its own file | End-to-end example | Controlling where footnotes appear | Left and right placement | Linking a footnote to a column header (HTML / PDF) | Chaining multiple footnotes | Tips

Last update: 2026-05-05
Started: 2026-05-05

Saving and Sharing Your Tables
Saving to Excel | Basic save | Add a title, subtitle, and notes | More table examples | Frequency table with running totals | Grouped frequency table | Basic cross-tabulation | Cross-tabulation with column percentages | Save multiple tables to one workbook | Save each table to its own file | Add an index sheet to a multi-table workbook | Managing metadata for large reports | Step 1 — Create a template | Step 2 — Fill in the reference data | Step 3 — Export with the reference | Saving to HTML | Multiple tables in one HTML file | Saving to PDF | Saving to Word | Summary

Last update: 2026-05-05
Started: 2026-05-05