exportDiffData {clinUtils}R Documentation

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

Description

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

Usage

exportDiffData(
  diffData,
  newDataDiff,
  oldDataDiff,
  referenceVars = attr(diffData, "referenceVars"),
  changeableVars = attr(diffData, "changeableVars"),
  to = "DT",
  ...
)

Arguments

diffData

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

newDataDiff

data.frame with new data with differences as returned by the mergeDiffWithData. The data set contains the new data with the information if each record differs in the new dataset.

oldDataDiff

data.frame with old data with differences as returned by the mergeDiffWithData. The data set contains the old data with the information if each record differs in the old dataset.

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.

to

String with export format, currently only: DT is available to export to a datatable object.

...

Extra parameters besides 'data' and 'nonVisibleVars', currently passed to the getClinDT function.

Value

Depending on the to parameter:


[Package clinUtils version 0.1.4 Index]