equalGADS {eatGADS} | R Documentation |
Test if two GADSdat
objects are (nearly) equal
Description
Run 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.
Usage
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"))
Arguments
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 |
Details
More detailed checks for individual variables can be performed via inspectDifferences
and inspectMetaDifferences
.
Value
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? |