compareDiff
to a user-friendly formatExport the 'diff.data' object from compareDiff
to a user-friendly format
exportDiffData(
diffData,
newDataDiff,
oldDataDiff,
referenceVars = attr(diffData, "referenceVars"),
changeableVars = attr(diffData, "changeableVars"),
to = "DT",
...
)
Depending on the to
parameter:
'DT': a datatable
with the difference between datasets,
with:
highlighting depending on the difference between datasets:
'Addition' in green
'Removal' in yellow
'Change' in lightblue
'Identical' are not highlighted
records only present in the old dataset are displayed in italic
Object of class 'diff.data' containing
differences between datasets, as returned by the compareDiff
function.
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.
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.
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.
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.
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.