Learn R Programming

eatGADS (version 1.1.0)

inspectDifferences: Inspect differences in a variable.

Description

Inspect differences between two GADSdat objects in a specific variable.

Usage

inspectDifferences(varName, GADSdat1, GADSdat2, id)

Value

A list.

Arguments

varName

A character vector of length 1 containing the variable name.

GADSdat1

A GADSdat object.

GADSdat2

A GADSdat object.

id

A character vector of length 1 containing the unique identifier column of both GADSdat.

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.

Examples

Run this code
# 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")

Run the code above in your browser using DataLab