Learn R Programming

eatRep (version 0.15.0)

checkLEs: Checks compatibility of linking errors with GADS data bases.

Description

This function checks if a linking error data.frame is compatible with multiple trend eatGADS data bases.

Usage

checkLEs(filePaths, leDF)

Value

Returns a report list.

Arguments

filePaths

Character vectors with at least two paths to the eatGADS db files.

leDF

Linking error data.frame.

Details

This function inspects whether all linking error variables correspond to variables in the eatGADS data base and if the key variables also correspond to existing variables in the trend eatGADS data bases.

Examples

Run this code
trenddat1 <- system.file("extdata", "trend_gads_2010.db", package = "eatGADS")
trenddat2 <- system.file("extdata", "trend_gads_2015.db", package = "eatGADS")
trenddat3 <- system.file("extdata", "trend_gads_2020.db", package = "eatGADS")
load(system.file("extdata", "linking_error.rda", package = "eatRep"))
check1 <- checkLEs(c(trenddat1, trenddat2, trenddat3), lErr)
check2 <- checkLEs(c(trenddat1, trenddat2, trenddat3), lErr[1:14,])

Run the code above in your browser using DataLab