clinUtils0.2.2 package

General Utility Functions for Analysis of Clinical Data

checkVarInData

Check if specified variables are in the data. If they are not, they ar...

clinColors

Colors of 'clinUtils'

clinLinetypes

Linetypes of 'clinUtils'

clinShapes

Shapes of 'clinUtils'

clinShapesText

Shapes of 'clinUtils' as text

clinUtils-palette

Parameters for all palette functions for clinical visualizations.

compareDiff

Get differences between two data.frames

compareTables

Compare tables

comparisonTables-common-args

General parameters used for the comparison table functionality

convertToDatatable

Convert to data.table

convertToDateTime

Convert character vector to date/time object

exportDiffData

Export the 'diff.data' object from compareDiffto a user-friendly for...

formatDetailsComparison

Format details comparison

formatDTBarVar

Format a variable in a datatableas a barplot.

formatLabel

Concatenate and format text strings to a label

formatLabelChunk

Concatenate and format text strings to a chunk label

formatLongLabel

Format a variable with long labels

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

getClinDT

Create an interactive table to display clinical data

getClinDTButtons

Get a default set of buttons to be included in the interactive table f...

getColorPalette

Get a color palette for clinical visualizations.

getLabelParamcd

Get label for a parameter code

getLabelVar

Get label for a variable of the dataset

getLabelVars

Get label of the variables in SAS dataset(s)

getLinetypePalette

Get a linetype palette for clinical visualizations.

getPaletteCDISC

Get standard palette for typical CDISC variables.

getSetDiff

Get additions/removals

getShapePalette

Get a shape palette for clinical visualizations.

knitPrintListObjects

Include a list of objects in a knitr document

knitPrintListPlots

Include a list of plots in a knitr document

loadDataADaMSDTM

Load data from ADaM/SDTM file(s).

mergeDiffWithData

Merge the 'diff.data' object from compareDiffwith the original `newD...

mergeInputDiff

Custom merge of difference data with input data

reorderColumns

Function for reordering columns

roundHalfUp

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

roundHalfUpTextFormat

Round a number with 'round-up' strategy for rounding off a 5 in text f...

simpleCap

Capitalize the first letter of a word/sentence.

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.

  • Maintainer: Laure Cougnaud
  • License: MIT + file LICENSE
  • Last published: 2025-12-04