Learn R Programming

inTextSummaryTable (version 3.3.2)

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

710

Version

3.3.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

March 9th, 2024

Functions in inTextSummaryTable (3.3.2)

checkVar

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

Check the varLabInclude variable.
computeSummaryStatisticsTableTotal

Compute summary statistics total table.
computeSummaryStatisticsTable

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

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

Export an object
cv

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

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

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

Convert summary statistics table to flextable
exportFlextableToDocx

Export flextable to docx file
convertVectToBinary

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

Format summary statistics table for export
geomCV

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

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

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

Compute geometric standard deviation
geomSE

Compute geometric standard error of the mean.
geomMean

Compute geometric mean.
exportSummaryStatisticsTableToFlextable

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

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

Format or create flextable for listings.
getDimPage

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

Format a percentage.
getNDecimalsData

Get number of decimals based on the data in a numeric vector. Note: NA is returned if the element is missing (NA).
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.
getMaxNDecimalsData

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

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

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

Get number of decimals for a specific vector.
getColorPaletteTable

Get color palette for the tables
getStatisticsSummaryStatisticsTable

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

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

Common arguments for the functionalities of the inTextSummaryTable package for flextable export.
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.
getAttribute

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

Plot subject summary profile.
inTextSummaryTable-stats-utility

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

Page dimension for powerpoints
postProcessVarFlag

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

inTextSummaryTable: creation of in-text summary table
subjectProfileSummaryTable

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

summaryTable
tableColorsReport

Colors for tables in a report style
tableColorsPresentation

Colors for tables in a presentation style
uniqueVarWithOrder

Get unique variables with meaningful order.
writeTable

Custom function to write table to a text file
se

Compute standard error of the mean.
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).
smoothPadding

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

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

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

Combine summary statistics table
combine

Combine objects
combineVariables

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

Combine the column total for a combined summary table
computeSummaryStatisticsByRowColVar

Compute summary statistics by specified rowVar and colVar