Package: tidytlg 0.11.0.9000

Konrad Pagacz

tidytlg: Create TLGs using the 'tidyverse'

Generate tables, listings, and graphs (TLG) using 'tidyverse'. Tables can be created functionally, using a standard TLG process, or by specifying table and column metadata to create generic analysis summaries. The 'envsetup' package can also be leveraged to create environments for table creation.

Authors:Nicholas Masel [aut], Steven Haesendonckx [aut], Pelagia Alexandra Papadopoulou [aut], Sheng-Wei Wang [aut], Eli Miller [aut], Nathan Kosiba [aut], Aidan Ceney [aut], Janssen R&D [cph, fnd], David Hugh-Jones [cph], Konrad Pagacz [aut, cre]

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

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

Bug tracker:https://github.com/pharmaverse/tidytlg/issues

Pkgdown/docs site:https://pharmaverse.github.io

Datasets:
  • cdisc_adae - 'ADAE' data created from subsetting the 'CDISC' 'ADAE' dataset
  • cdisc_adlb - 'ADLB' data created from subsetting the 'CDISC' 'ADLB' dataset
  • cdisc_adsl - 'ADSL' data created from subsetting the 'CDISC' 'ADSL' with 15 subjects
  • cdisc_advs - 'ADVS' data created from subsetting the 'CDISC' 'ADVS' dataset
  • column_metadata - Metadata describing table column layouts
  • table_metadata - Metadata describing the data, functions and arguments needed to produce your results.

On CRAN:

Conda:

9.50 score 40 stars 2 packages 65 scripts 1.2k downloads 26 exports 50 dependencies

Last updated from:cc1af94fba. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE247
source / vignettesOK270
linux-release-x86_64NOTE228
macos-release-arm64NOTE118
macos-oldrel-arm64NOTE151
windows-develNOTE146
windows-releaseNOTE175
windows-oldrelNOTE146
wasm-releaseOK156

Exports:add_bottom_bordersadd_formatadd_indentadd_newrowsbind_tablechar2factorcol_bordersfreqgenerate_resultsgentlgget_file_nameinsert_empty_rowsnested_freqno_bordersreplace_na_with_blankrmdpstitleroundSASrow_bordersingle_borderspanning_bordersspanning_headersstatlisttidytlg_metadatatidytlg_titlestlgsetupunivar

Dependencies:assertthatbase64enccachemcellrangerclicommonmarkcpp11crayondigestdplyrfansifarverfastmapforcatsgenericsggplot2gluegtablehmshtmltoolshuxtableisobandlabelinglifecyclemagrittrmemoisepillarpkgconfigpngprettyunitsprogresspurrrR6RColorBrewerreadxlrematchrlangrstudioapiS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithrxml2

Get Started
Overview of TLG Programming | Prep environment | titles and footnotes | Column metadata | Process data | Generate results | Output results | Listing programming | Graph programming | Metadata method | By processing

Last update: 2025-12-17
Started: 2022-12-12

Column Metadata & How tidytlg Sets Up Your Data Using tlgsetup

Last update: 2025-12-17
Started: 2022-12-12

Manipulating tbl data frame
Introduction | Basic tbl data frame | Formatting table | Add new row | Add indentation | Enable bold font | Formatting functions

Last update: 2025-12-17
Started: 2022-12-12

Tips & Tricks: Including Symbols, Superscripts, Subscripts & Line Breaks
Symbols | Superscripts and Subscripts | Inline RTF Line Breaks

Last update: 2025-12-17
Started: 2022-12-12

Frequency Analysis
Introduction | Counts: statlist = statlist("n") | Big N row, counts and percentages: statlist = statlist(c("N", "n (x.x%)")) | Using factor to order category summary | Counts, denominators, and percentages: statlist = statlist(c("n/N (x.x%)")) | By processing: statlist = statlist(c("N", "n (x.x%)")) | Padding factor levels on and off | Denominator Dataframe | By processing and denominators: statlist = statlist(c("n (x.x)"), denoms_by = "TRT01AN") | Available statlist formats for frequency summary | Nested Frequency Analysis

Last update: 2025-12-17
Started: 2022-12-12

Univariate Statistics Analysis
Introduction | Customizing Univariate Statistics | Decimal Precision | Data Driven Precision

Last update: 2025-12-17
Started: 2022-12-12

Readme and manuals

Help Manual

Help pageTopics
Adds bottom borders to a 'huxtable'add_bottom_borders
Add the formatting variables of 'indentme', 'newrows', 'newpage', and 'roworder' to the results dataframeadd_format
Add indentation variable to the results dataframeadd_indent
Add the 'newrows' variable to the results dataframe.add_newrows
Bind a set of 'tidytlg' tables together with formatting variablesbind_table
'ADAE' data created from subsetting the 'CDISC' 'ADAE' datasetcdisc adae cdisc_adae
'ADLB' data created from subsetting the 'CDISC' 'ADLB' datasetcdisc adlb cdisc_adlb
'ADSL' data created from subsetting the 'CDISC' 'ADSL' with 15 subjects (5 subjects in each arm)cdisc adsl cdisc_adsl
'ADVS' data created from subsetting the 'CDISC' 'ADVS' datasetcdisc advs cdisc_advs
Convert character variable to a factor based off it's numeric variable counterpart.char2factor
Adds borders under cells in a columncol_borders
Metadata describing table column layoutscolumn_metadata
Frequency counts and percentagesfreq
Generate Results using Table and Column Metadatagenerate_results
Output a 'tidytlg' tablegentlg
getFileNameget_file_name
Inserts empty rows into a data frameinsert_empty_rows
Generate nested count/percent for two or three levelsnested_freq
Removes all borders from the tableno_borders
Replace NA with ""replace_na_with_blank
Get Titles and Footnotes for all TLGs or one specific TLGrmdpstitle
SAS rounding in RroundSAS
Adds a continuous bottom border under a rowrow_border
Adds a border under a cellsingle_border
Adds borders under cells in a row, excluding the first column.spanning_borders
Spanning headers for outputsspanning_headers
Create a 'statlist' interface for a tablestatlist
Metadata describing the data, functions and arguments needed to produce your results.table_metadata
Helper functions for returning files used in 'gentlg'tidytlg_metadata tidytlg_titles
Setup data to support the specified column typetlgsetup
Descriptive statisticsunivar