equalGADS | R Documentation |
GADSdat
objects are (nearly) equalRun tests to check whether two GADSdat
objects are (nearly) equal.
equalData
compares variable names, number of rows in the data, and data differences.
equalMeta
compares variable names and meta data differences.
equalGADS
combines both functions. All functions produce a test report in list format.
equalGADS(
target,
current,
id = NULL,
metaExceptions = c("display_width", "labeled"),
tolerance = sqrt(.Machine$double.eps)
)
equalData(target, current, id = NULL, tolerance = sqrt(.Machine$double.eps))
equalMeta(target, current, metaExceptions = c("display_width", "labeled"))
target |
A |
current |
A |
id |
A character vector containing the unique identifier columns of both |
metaExceptions |
Should certain meta data columns be excluded from the comparison? |
tolerance |
A numeric value greater than or equal to |
More detailed checks for individual variables can be performed via inspectDifferences
and inspectMetaDifferences
.
Returns a list with the following entries:
names_not_in_1 |
Which variables are included in |
names_not_in_2 |
Which variables are included in |
data_nrow |
Do the actual data sets have the same number of rows? |
data_differences |
For which variables are the data different? |
meta_data_differences |
For which variables are the meta data different? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.