inspectMetaDifferences {eatGADS} | R Documentation |
Inspect meta data differences in a variable.
Description
Inspect meta data differences between two GADSdat
objects or GADSdat
data bases regarding a specific variable.
Usage
inspectMetaDifferences(varName, GADSdat1, GADSdat2)
Arguments
varName |
A character vector of length 1 containing the variable name. |
GADSdat1 |
A |
GADSdat2 |
A |
Details
Two GADSdat
objects can be compared using equalGADS
.
If meta data differences for specific variables in the two objects occur,
these variables can be further inspected using inspectMetaDifferences
.
For data-level differences for a specific variable, see inspectDifferences
.
Value
A list.
Examples
# create a second GADS with different meta data
pisa2 <- pisa
pisa2 <- changeVarLabels(pisa2, varName = "sameteach", varLabel = "Same math teacher")
pisa2 <- recodeGADS(pisa2, varName = "sameteach", oldValues = c(1, 2), newValues = c(0, 1))
# inspect via equalGADS()
equalGADS(pisa, pisa2)
# inspect via inspectMetaDifferences()
inspectMetaDifferences("sameteach", GADSdat1 = pisa, GADSdat2 = pisa2)
[Package eatGADS version 1.1.0 Index]