Learn R Programming

inTextSummaryTable (version 3.3.5)

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

650

Version

3.3.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

September 25th, 2025

Functions in inTextSummaryTable (3.3.5)

convertSummaryStatisticsTableToFlextable

Convert summary statistics table to flextable
convertVectToBinary

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

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

Export flextable to docx file
convertVarFlag

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

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

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

Export an object
convertVarToFactorWithOrder

Convert a variable to a factor with levels in specified order.
export.summaryTable

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

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

Format summary statistics table for export
exportSummaryStatisticsTableToFlextable

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

Compute geometric standard error of the mean.
formatSummaryStatisticsTableFlextable

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

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

Compute geometric 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.
formatPercentage

Format a percentage.
geomSD

Compute geometric standard deviation
getMaxNDecimals

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

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

Get maximum number of decimals in a variable based on the data (getNDecimalsData)
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.
getNDecimalsRule

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

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

Get color palette for the tables
getAttribute

Get specific attribute from a summaryTable or a list of summaryTables
inTextSummaryTable-stats-utility

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

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

Format or create flextable for listings.
getStatisticsSummaryStatisticsTable

Compute custom statistics specified by the user.
inTextSummaryTable-stats

Statistics in the in-text table package.
getStats

Get default set of statistics for one particular variable.
inTextSummaryTable-DT-args

Common arguments for the functionalities of the inTextSummaryTable package for DT export.
getStatsData

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

inTextSummaryTable: creation of in-text summary table
getSummaryStatisticsTable

Get summary statistics table
inTextSummaryTable-common-args

Arguments used across the functions of the inTextSummaryTable package.
postProcessVarFlag

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

Page dimension for powerpoints
subjectProfileSummaryPlot

Plot subject summary profile.
subjectProfileSummaryTable

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

Custom function to write table to a text file
se

Compute standard error of the mean.
summaryTable

summaryTable
mergeHeaderCols

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

Colors for tables in a presentation style
smoothPadding

Smooth padding, e.g. remove padding bigger than 1
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).
uniqueVarWithOrder

Get unique variables with meaningful order.
tableColorsReport

Colors for tables in a report style
combineColTotal

Combine the column total for a combined summary table
combine

Combine objects
combineVariables

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

Combine summary statistics table
checkVarLabInclude

Check the varLabInclude variable.
checkVar

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

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

Compute summary statistics by specified rowVar and colVar
computeSummaryStatistics

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

Compute summary statistics total table.