Learn R Programming

clinUtils (version 0.2.2)

General Utility Functions for Analysis of Clinical Data

Description

Utility functions to facilitate the import, the reporting and analysis of clinical data. Example datasets in 'SDTM' and 'ADaM' format, containing a subset of patients/domains from the 'CDISC Pilot 01 study' are also available as R datasets to demonstrate the package functionalities.

Copy Link

Version

Install

install.packages('clinUtils')

Monthly Downloads

461

Version

0.2.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

December 4th, 2025

Functions in clinUtils (0.2.2)

exportDiffData

Export the 'diff.data' object from compareDiff to a user-friendly format
formatDetailsComparison

Format details comparison
formatLabel

Concatenate and format text strings to a label
getClinDT

Create an interactive table to display clinical data
getClinDTButtons

Get a default set of buttons to be included in the interactive table for clinical data.
getSetDiff

Get additions/removals
getShapePalette

Get a shape palette for clinical visualizations.
convertToDateTime

Convert character vector to date/time object
getLinetypePalette

Get a linetype palette for clinical visualizations.
getPaletteCDISC

Get standard palette for typical CDISC variables.
loadDataADaMSDTM

Load data from ADaM/SDTM file(s).
mergeDiffWithData

Merge the 'diff.data' object from compareDiff with the original newData or oldData.
knitPrintListObjects

Include a list of objects in a knitr document
knitPrintListPlots

Include a list of plots in a knitr document
formatDTBarVar

Format a variable in a datatable as a barplot.
getLabelVars

Get label of the variables in SAS dataset(s)
getLabelVar

Get label for a variable of the dataset
dataSDTMCDISCP01

Example of SDTM datasets from the CDISC original Pilot 01 study
mergeInputDiff

Custom merge of difference data with input data
reorderColumns

Function for reordering columns
getLabelParamcd

Get label for a parameter code
getColorPalette

Get a color palette for clinical visualizations.
formatTableLabel

Concatenate and format text strings to a label of a table
formatVarForPlotLabel

Format parameter variable to be displayed in the labels of a plot
roundHalfUp

Round a number with 'rounding up' strategy for rounding off a 5
shapePaletteNRIND

Shape palette for a standard CDISC Normal/Reference Range Indicator.
roundHalfUpTextFormat

Round a number with 'round-up' strategy for rounding off a 5 in text format
simpleCap

Capitalize the first letter of a word/sentence.
clinShapes

Shapes of 'clinUtils'
compareTables

Compare tables
checkVarInData

Check if specified variables are in the data. If they are not, they are removed from specified variables and a message is printed.
clinColors

Colors of 'clinUtils'
compareDiff

Get differences between two data.frames
comparisonTables-common-args

General parameters used for the comparison table functionality
clinUtils-palette

Parameters for all palette functions for clinical visualizations.
convertToDatatable

Convert to data.table
clinLinetypes

Linetypes of 'clinUtils'
dataADaMCDISCP01

Example of ADaM datasets from the CDISC original Pilot 01 study
clinShapesText

Shapes of 'clinUtils' as text
colorPaletteNRIND

Color palette for a standard CDISC Normal/Reference Range Indicator.
formatLabelChunk

Concatenate and format text strings to a chunk label
formatLongLabel

Format a variable with long labels