View source: R/inspectMetaDifferences.R
inspectMetaDifferences | R Documentation |
Inspect meta data differences within a single GADSdat
or between two GADSdat
objects
or GADSdat
data bases regarding a specific variable.
inspectMetaDifferences(
GADSdat,
varName,
other_GADSdat = GADSdat,
other_varName = varName
)
GADSdat |
A |
varName |
A character vector of length 1 containing the variable name. |
other_GADSdat |
A second |
other_varName |
A character vector of length 1 containing the other variable name.
If omitted, it is assumed that both variables have identical names (as supplied in |
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
.
A list.
# 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(GADSdat = pisa, varName = "sameteach", other_GADSdat = pisa2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.