Learn R Programming

clinUtils (version 0.2.1)

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

754

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Laure Cougnaud

Last Published

September 3rd, 2025

Functions in clinUtils (0.2.1)

formatLongLabel

Format a variable with long labels
convertToDateTime

Convert character vector to date/time object
formatDetailsComparison

Format details comparison
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
getPaletteCDISC

Get standard palette for typical CDISC variables.
getLinetypePalette

Get a linetype palette for clinical visualizations.
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.
roundHalfUp

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

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

Function for reordering columns
getColorPalette

Get a color palette for clinical visualizations.
mergeInputDiff

Custom merge of difference data with input data
getLabelParamcd

Get label for a parameter code
getSetDiff

Get additions/removals
formatLabel

Concatenate and format text strings to a label
getShapePalette

Get a shape palette for clinical visualizations.
mergeDiffWithData

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

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

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

Create an interactive table to display clinical data
getLabelVar

Get label for a variable of the dataset
getLabelVars

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

Include a list of objects in a knitr document
knitPrintListPlots

Include a list of plots in a knitr document
comparisonTables-common-args

General parameters used for the comparison table functionality
clinUtils-palette

Parameters for all palette functions for clinical visualizations.
colorPaletteNRIND

Color palette for a standard CDISC Normal/Reference Range Indicator.
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
compareTables

Compare tables
clinShapes

Shapes of 'clinUtils'
clinShapesText

Shapes of 'clinUtils' as text
clinLinetypes

Linetypes of 'clinUtils'
dataADaMCDISCP01

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

Convert to data.table
exportDiffData

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

Format a variable in a datatable as a barplot.
formatLabelChunk

Concatenate and format text strings to a chunk label
dataSDTMCDISCP01

Example of SDTM datasets from the CDISC original Pilot 01 study