Learn R Programming

inTextSummaryTable (version 3.3.4)

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

594

Version

3.3.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

September 3rd, 2025

Functions in inTextSummaryTable (3.3.4)

cv

Compute the percentage coefficient of variation, (in a scale from 0 to 100).
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.
createFlextableWithHeader

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

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

Export flextable to docx file
convertSummaryStatisticsTableToFlextable

Convert summary statistics table to flextable
convertVarFlag

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

Export an object
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.
geomCV

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

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

Compute geometric mean.
formatSummaryStatisticsTable

Format summary statistics table for export
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.
geomSE

Compute geometric standard error of the mean.
geomSD

Compute geometric standard deviation
getNDecimalsRule

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

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

Get maximum number of decimals in a variable, based on pre-defined rule and/or data.
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
getDimPage

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

Format a percentage.
getListing

Format or create flextable for listings.
getMaxNDecimalsData

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

Get number of decimals for a specific vector.
getNDecimalsData

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

Common arguments for the functionalities of the inTextSummaryTable package for flextable export.
inTextSummaryTable-stats-utility

Common arguments for the for the statistics utility functions of the inTextSummaryTable package.
getStats

Get default set of statistics for one particular variable.
getStatisticsSummaryStatisticsTable

Compute custom statistics specified by the user.
inTextSummaryTable-common-args

Arguments used across the functions of the inTextSummaryTable package.
inTextSummaryTable-DT-args

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

Compute standard error of the mean.
smoothPadding

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

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

Get unique variables with meaningful order.
tableColorsReport

Colors for tables in a report style
inTextSummaryTable

inTextSummaryTable: creation of in-text summary table
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).
inTextSummaryTable-stats

Statistics in the in-text table package.
postProcessVarFlag

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

Page dimension for powerpoints
writeTable

Custom function to write table to a text file
getStatsData

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

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

Get summary statistics table
subjectProfileSummaryPlot

Plot subject summary profile.
tableColorsPresentation

Colors for tables in a presentation style
summaryTable

summaryTable
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.
combineColTotal

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

Combine summary statistics table
checkVarLabInclude

Check the varLabInclude variable.
computeSummaryStatistics

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

Combine objects
computeSummaryStatisticsTableTotal

Compute summary statistics total table.
computeSummaryStatisticsByRowColVar

Compute summary statistics by specified rowVar and colVar
computeSummaryStatisticsTable

Compute summary statistics for a specific dataset and variables of interest