inspectDifferences {eatGADS} | R Documentation |
Inspect differences in a variable.
Description
Inspect differences between two GADSdat
objects in a specific variable.
Usage
inspectDifferences(varName, GADSdat1, GADSdat2, id)
Arguments
varName |
A character vector of length 1 containing the variable name. |
GADSdat1 |
A |
GADSdat2 |
A |
id |
A character vector of length 1 containing the unique identifier column of both |
Details
Two GADSdat
objects can be compared using equalGADS
.
If differences in the data for specific variables in the two objects occur,
these variables can be further inspected using inspectDifferences
. Differences on meta data-level can be inspected via
inspectMetaDifferences
.
Value
A list.
Examples
# create a second GADS with different data
pisa2 <- pisa
pisa2$dat$age[400:nrow(pisa$dat)] <- sample(pisa2$dat$age[400:nrow(pisa$dat)])
# inspect via equalGADS()
equalGADS(pisa, pisa2)
# inspect via inspectDifferences()
inspectDifferences("age", GADSdat1 = pisa, GADSdat2 = pisa2, id = "idstud")
[Package eatGADS version 1.1.0 Index]