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 |
newDataDiff |
data.frame with new data with differences
as returned by the |
oldDataDiff |
data.frame with old data with differences
as returned by the |
referenceVars |
character vector of the columns in the data that are the used as
reference for the comparison. |
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. |
to |
String with export format,
currently only: |
... |
Extra parameters besides 'data' and 'nonVisibleVars',
currently passed to the |
Value
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