mergeDiffWithData {clinUtils} | R Documentation |
Merge the 'diff.data' object from compareDiff
with the original newData
or oldData
.
Description
The newData
/oldData
are merged
with diffData
based on the columns of diffData
excepted 'Comparison type' and 'Version'.
Usage
mergeDiffWithData(diffData, newData, oldData)
Arguments
diffData |
Object of class 'diff.data' containing
differences between datasets, as returned by the |
newData |
data.frame object representing the new data |
oldData |
data.frame object representing the old data |
Value
The newData
or oldData
(as a data frame object)
with the extra column 'Comparison type' specifying the type
of change, either:
'Change': record present in both dataset based on the reference variables, but with changes in the changeable variables
'Addition': records present in new but not in old data
'Removal': records present in old but not in new data
'Identical': records identical in the old and new datasets (on both the reference and changeable variables)