Learn R Programming

clinUtils (version 0.1.4)

formatDetailsComparison: Format details comparison

Description

Format details comparison

Usage

formatDetailsComparison(
  diffData,
  referenceVars = attr(diffData, "referenceVars"),
  changeableVars = attr(diffData, "changeableVars")
)

Value

diffData with extra columns: '[].diff' for the referenceVars and changeableVars

columns, and attributes: 'colsDiff' as a named vector with mapping with input variables (names) and corresponding diff variables.

Arguments

diffData

Object of class 'diff.data' containing differences between datasets, as returned by the compareDiff function.

referenceVars

character vector of the columns in the data that are the used as reference for the comparison.
If not specified, all columns present both in newData and oldData are considered.

changeableVars

character vector of the columns in the data for which you want to assess the change, e.g. variables that might have changed from the old to the new data.
If not specified, only 'Addition' and 'Removal' are detected.

Author

Laure Cougnaud