Package: clinUtils 0.2.0

Laure Cougnaud

clinUtils: General Utility Functions for Analysis of Clinical Data

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.

Authors:Laure Cougnaud [aut, cre], Michela Pasetto [aut], Arne De Roeck [rev], Open Analytics [cph]

clinUtils_0.2.0.tar.gz
clinUtils_0.2.0.zip(r-4.5)clinUtils_0.2.0.zip(r-4.4)clinUtils_0.2.0.zip(r-4.3)
clinUtils_0.2.0.tgz(r-4.4-any)clinUtils_0.2.0.tgz(r-4.3-any)
clinUtils_0.2.0.tar.gz(r-4.5-noble)clinUtils_0.2.0.tar.gz(r-4.4-noble)
clinUtils_0.2.0.tgz(r-4.4-emscripten)clinUtils_0.2.0.tgz(r-4.3-emscripten)
clinUtils.pdf |clinUtils.html
clinUtils/json (API)
NEWS

# Install 'clinUtils' in R:
install.packages('clinUtils', repos = c('https://openanalytics.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/openanalytics/clinutils/issues

Datasets:
  • colorPaletteNRIND - Color palette for a standard CDISC Normal/Reference Range Indicator.
  • dataADaMCDISCP01 - Example of ADaM datasets from the CDISC original Pilot 01 study
  • dataSDTMCDISCP01 - Example of SDTM datasets from the CDISC original Pilot 01 study
  • shapePaletteNRIND - Shape palette for a standard CDISC Normal/Reference Range Indicator.

On CRAN:

6.75 score 3 stars 3 packages 104 scripts 936 downloads 30 exports 59 dependencies

Last updated 6 months agofrom:271fbd6f79. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winNOTENov 13 2024
R-4.5-linuxNOTENov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:clinColorsclinLinetypesclinShapesclinShapesTextcompareDiffcompareTablesconvertToDateTimeexportDiffDataformatLabelformatLabelChunkformatLongLabelformatTableLabelformatVarForPlotLabelgetClinDTgetClinDTButtonsgetColorPalettegetLabelParamcdgetLabelVargetLabelVarsgetLinetypePalettegetPaletteCDISCgetShapePaletteknitPrintListObjectsknitPrintListPlotsloadDataADaMSDTMmergeDiffWithDatareorderColumnsroundHalfUproundHalfUpTextFormatsimpleCap

Dependencies:base64encbitbit64bslibcachemclicliprcpp11crayoncrosstalkdata.tabledigestDTevaluatefansifastmapfontawesomeforcatsfsgluehavenhighrhmshtmltoolshtmlwidgetshttpuvjquerylibjsonliteknitrlaterlazyevallifecyclemagrittrmemoisemimepillarpkgconfigplyrprettyunitsprogresspromisesR6rappdirsRcppreadrrlangrmarkdownsasstibbletidyselecttinytextzdbutf8vctrsviridisLitevroomwithrxfunyaml

Introduction to the clinUtils package

Rendered fromclinUtils-vignette.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2022-02-01
Started: 2022-02-01

Readme and manuals

Help Manual

Help pageTopics
Check if specified variables are in the data. If they are not, they are removed from specified variables and a message is printed.checkVarInData
Colors of 'clinUtils'clinColors
Linetypes of 'clinUtils'clinLinetypes
Shapes of 'clinUtils'clinShapes
Shapes of 'clinUtils' as textclinShapesText
Parameters for all palette functions for clinical visualizations.clinUtils-palette
Color palette for a standard CDISC Normal/Reference Range Indicator.colorPaletteNRIND
Get differences between two data.framescompareDiff
Compare tablescompareTables
General parameters used for the comparison table functionalitycomparisonTables-common-args
Convert to data.tableconvertToDatatable
Convert character vector to date/time objectconvertToDateTime
Example of ADaM datasets from the CDISC original Pilot 01 studydataADaMCDISCP01
Example of SDTM datasets from the CDISC original Pilot 01 studydataSDTMCDISCP01
Export the 'diff.data' object from 'compareDiff' to a user-friendly formatexportDiffData
Format details comparisonformatDetailsComparison
Format a variable in a 'datatable' as a barplot.formatDTBarVar
Concatenate and format text strings to a labelformatLabel
Concatenate and format text strings to a chunk labelformatLabelChunk
Format a variable with long labelsformatLongLabel
Concatenate and format text strings to a label of a tableformatTableLabel
Format parameter variable to be displayed in the labels of a plotformatVarForPlotLabel
Create an interactive table to display clinical datagetClinDT
Get a default set of buttons to be included in the interactive table for clinical data.getClinDTButtons
Get a color palette for clinical visualizations.getColorPalette
Get label for a parameter codegetLabelParamcd
Get label for a variable of the datasetgetLabelVar
Get label of the variables in SAS dataset(s)getLabelVars
Get a linetype palette for clinical visualizations.getLinetypePalette
Get standard palette for typical CDISC variables.getPaletteCDISC
Get additions/removalsgetSetDiff
Get a shape palette for clinical visualizations.getShapePalette
Include a list of objects in a knitr documentknitPrintListObjects
Include a list of plots in a knitr documentknitPrintListPlots
Load data from ADaM/SDTM file(s).loadDataADaMSDTM
Merge the 'diff.data' object from 'compareDiff' with the original 'newData' or 'oldData'.mergeDiffWithData
Custom merge of difference data with input datamergeInputDiff
Function for reordering columnsreorderColumns
Round a number with 'rounding up' strategy for rounding off a 5roundHalfUp
Round a number with 'round-up' strategy for rounding off a 5 in text formatroundHalfUpTextFormat
Shape palette for a standard CDISC Normal/Reference Range Indicator.shapePaletteNRIND
Capitalize the first letter of a word/sentence.simpleCap