View source: R/compareTables.R
exportDiffData | R Documentation |
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",
...
)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.