Learn R Programming

inTextSummaryTable (version 3.4.0)

Creation of in-Text Summary Table

Description

Creation of tables of summary statistics or counts for clinical data (for 'TLFs'). These tables can be exported as in-text table (with the 'flextable' package) for a Clinical Study Report (Word format) or a 'topline' presentation (PowerPoint format), or as interactive table (with the 'DT' package) to an html document for clinical data review.

Copy Link

Version

Install

install.packages('inTextSummaryTable')

Monthly Downloads

322

Version

3.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

May 4th, 2026

Functions in inTextSummaryTable (3.4.0)

cv

Compute the percentage coefficient of variation, (in a scale from 0 to 100).
export

Export an object
convertVarRowVarColVarToFactor

Convert rowVar, colVar and character var in data to factor
convertVectToBinary

Convert vector to a bincode of 0/1 based on consecutive values in the vector.
convertVarToFactorWithOrder

Convert a variable to a factor with levels in specified order.
createFlextableWithHeader

Create a flextable, setting the column names to syntactic names if it is not the case.
convertSummaryStatisticsTableToFlextable

Convert summary statistics table to flextable
export.summaryTable

Export a summary table to docx, pptx or html format (interactive table)
convertVarFlag

Convert flag variable to a format such as only the flagged records are counted in the summary table.
exportFlextableToDocx

Export flextable to docx file
exportSummaryStatisticsTableToFlextable

Export summary table to a flextable object, e.g. to be exported in Word or PowerPoint.
formatSummaryStatisticsTableFlextable

Merge nested rows of a summary table for a format compatible with flextable
geomSD

Compute geometric standard deviation
exportSummaryStatisticsTableToDT

Export summary table to an interactive DT table, e.g. to be exported into an html document.
formatPercentage

Format a percentage.
geomMean

Compute geometric mean.
geomCV

Compute geometric coefficient of variation (in a scale from 0 to 100).
formatSummaryStatisticsTable

Format summary statistics table for export
geomSE

Compute geometric standard error of the mean.
formatCustomFlextable

Format superscript/subscripts/bold cells in a flextable. Superscript should be indicated as: 'a^{b}', subscript as 'a_{b}' and bold as 'bold{a}' in the the input summary table.
getMaxNDecimals

Get maximum number of decimals in a variable, based on pre-defined rule and/or data.
getNDecimalsRule

Get number of decimals based pre-defined rule(s).
getColorPaletteTable

Get color palette for the tables
getMaxNDecimalsData

Get maximum number of decimals in a variable based on the data (getNDecimalsData)
getPatternPosition

Get position(s) (start, end) of a pattern in a string.
getAttribute

Get specific attribute from a summaryTable or a list of summaryTables
getNDecimalsData

Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).
getNDecimals

Get number of decimals for a specific vector.
getListing

Format or create flextable for listings.
getDimPage

Get dimension of the page available for content for standard Word report or PowerPoint presentation.
inTextSummaryTable

inTextSummaryTable: creation of in-text summary table
inTextSummaryTable-DT-args

Common arguments for the functionalities of the inTextSummaryTable package for DT export.
inTextSummaryTable-common-args

Arguments used across the functions of the inTextSummaryTable package.
getStatisticsSummaryStatisticsTable

Compute custom statistics specified by the user.
getSummaryStatisticsTable

Get summary statistics table
getStats

Get default set of statistics for one particular variable.
getStatsData

Get default set of statistics for variables of interest and specific dataset.
inTextSummaryTable-stats-utility

Common arguments for the for the statistics utility functions of the inTextSummaryTable package.
inTextSummaryTable-stats

Statistics in the in-text table package.
inTextSummaryTable-flextable-args

Common arguments for the functionalities of the inTextSummaryTable package for flextable export.
tableColorsPresentation

Colors for tables in a presentation style
subjectProfileSummaryTable

Plot a table with ggplot of a text variable of interest.
postProcessVarFlag

Post-process the summary statistics table with variable flag.
smoothPadding

Smooth padding, e.g. remove padding bigger than 1
writeTable

Custom function to write table to a text file
interactionCustom

Compute the interaction between variable(s), without propagating the missing values (if present in one of the variable) unlike the behaviour with interaction. This also ensure that the levels of the final interaction variables are ordered similarly as the levels of the input var (if present).
mergeHeaderCols

Merge columns and rows in the header of a flextable object.
subjectProfileSummaryPlot

Plot subject summary profile.
uniqueVarWithOrder

Get unique variables with meaningful order.
pageDimPresentation

Page dimension for powerpoints
se

Compute standard error of the mean.
tableColorsReport

Colors for tables in a report style
summaryTable

summaryTable
computeSummaryStatisticsByRowColVar

Compute summary statistics by specified rowVar and colVar
combine

Combine objects
combineColTotal

Combine the column total for a combined summary table
combine.summaryTable

Combine summary statistics table
checkVarLabInclude

Check the varLabInclude variable.
combineVariables

Create a data.frame combining a set of records from same or multiple variables.
checkVar

Check if variable(s) are present in reference: either in columns in a dataset or in reference set.
computeSummaryStatistics

Compute summary statistics of interest of an unique variable of interest.
computeSummaryStatisticsTable

Compute summary statistics for a specific dataset and variables of interest
computeSummaryStatisticsTableTotal

Compute summary statistics total table.