Learn R Programming

⚠️There's a newer version (1.1.1) of this package.Take me there.

eatGADS

Overview

eatGADS (educational assessment tools: Greatest Assumable Data Set) is the data management and data handling tool used by the Institute for Educational Quality Improvement in Germany (IQB). It has a strong focus on (automated) handling and processing of meta data.

eatGADS uses SQLite3 as a back end and is especially suited for importing data stored as SPSS files. eatDB is used for data base creation and use, haven is used for importing SPSS files.

Installation

# Install stable version from CRAN via
install.packages("eatGADS")

# Install development version from GitHub via
remotes::install_github("beckerbenj/eatGADS")

Usage

The functionality of eatGADS is extensively documented in its various vignettes. If you have questions regarding existing functionality or requests for new features, contact the package author.

# import SPSS data
sav_path <- system.file("extdata", "pisa.zsav", package = "eatGADS")
gads_obj <- import_spss(sav_path)

# see names of variables in the data set
namesGADS(gads_obj)

# extract meta data for specific variables
extractMeta(gads_obj, vars = c("schtype", "idschool"))

# extract data for data analysis while applying missing tags and value labels
dat1 <- extractData(gads_obj, convertLabels = "character")

Copy Link

Version

Install

install.packages('eatGADS')

Monthly Downloads

477

Version

1.1.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Benjamin Becker

Last Published

August 25th, 2023

Functions in eatGADS (1.1.0)

checkEmptyValLabels

Check Value Labels
changeVarLabels

Change the variable label.
collapseColumns

Collapse two columns of a lookup table.
collapseMC_Text

Recode a multiple choice variable according to a character variable.
createVariable

Create a variable.
createNumCheck

Create data.frame for specification of numerical plausibility checks.
clean_cache

Clean temporary cache.
cloneVariable

Clone a variable.
dummies2char

Transform dummy variables to character variables.
createLookup

Extract values for recoding.
eatGADS-package

eatGADS: Data management of hierarchical SPSS files via R and SQLite
composeVar

Create a composite variable.
convertCase

Modify upper and lower case for strings.
createGADS

Create an eatGADS data base.
checkValue

Check for a specific value
checkVarNames

Check names for SQLite column name conventions.
extractVars

Extract or remove variables from a GADSdat.
export_tibble

Transform a GADSdat to a tibble
extractData

Extract Data
extractDataOld

Extract Data while merging linking errors.
extractData2

Extract Data 2
emptyTheseVariables

Set variables to NA.
compareGADS

Compare two GADS.
collapseMultiMC_Text

Recode multiple choice variable with multiple variables.
fac2dummies_complex

Transform a complex factor variable to dummy variables.
getGADS

Get data from GADS data base.
fillImputations

Fill imputed values.
extractGADSdat

Extract single GADSdat from all_GADSdat
getGADS_fast

Get data from GADS data base fast from server directory.
extractMeta

Get Meta Data
mergeLabels

Prepare data and metadata
merge.GADSdat

Merge two GADSdat objects into a single GADSdat object.
fixEncoding

Remove special characters.
getChangeMeta

Extract table for Meta Data Changes.
import_raw2

Import R data frame with a explicit meta data sheet
import_stata

Import Stata data
import_spss

Import SPSS data
import_RDS

Import RDS file
miss2NA

Recode Missings to NA
multiChar2fac

Transform one or multiple character variables to factor.
import_DF

Import R data.frame
import_convertLabel

Import an object imported via convertLabel
import_raw

Import R data frame with explicit meta data sheets
inspectDifferences

Inspect differences in a variable.
inspectMetaDifferences

Inspect meta data differences in a variable.
fac2dummies

Transform a factor variable to dummy variables.
namesGADS

Variables names of a GADS.
matchValues_varLabels

Match regular expressions and variable names.
labelsGADS

Labels from relational eatGADS data base.
recode2NA

Recode values to NA.
pisa

PISA Plus Example Data
equalGADS

Test if two GADSdat objects are (nearly) equal
write_spss

Write a GADSdat object to a file
insertVariable

Reorder a single variable in a GADSdat.
recodeString2NA

Recode a string to NA.
recodeGADS

Recode a variable.
updateMeta

Update meta data.
recodeNA2missing

Recode NAs to Missing.
getTrendGADSOld

Get data for trend reports.
remove2NAchar

Shorten multiple text variables while giving NA codes.
getTrendGADS

Get data for trend reports.
subImputations

Substitute imputed values.
stringAsNumeric

Transform string to numeric.
reuseMeta

Use meta data for variables from another GADSdat.
relocateVariable

Reorder a single variable in a GADSdat.
removeValLabels

Remove value labels.
splitGADS

Split GADSdat into hierarchy levels.
orderLike

Order the variables in a GADSdat.
write_spss2

Write a GADSdat object to txt and SPSS syntax
calculateScale

Calculate a scale.
assimilateValLabels

Assimilate value labels.
applyNumCheck

Apply recodes according to a numerical check data.frame.
cbind.GADSdat

Bind two GADSdat objects into a single GADSdat object by columns.
applyChangeMeta

Apply Meta Data Changes.
changeMissings

Change missing code.
autoRecode

Auto recode a variable in a GADSdat.
applyLookup_expandVar

Recode via lookup table into multiple variables.
applyLookup

Recode via lookup table.
changeSPSSformat

Change SPSS format.
checkMissings

Check and Adjust Missing Tags
check4SPSS

Check SPSS Compliance of Meta Data
checkFormat

Check and Adjust SPSS Format
checkUniqueness2

Check uniqueness of a variable.
changeVarNames

Change Variable Names.
checkTrendStructure

Checks compatibility of two eatGADS data bases.
changeValLabels

Change value labels.
checkUniqueness

Check uniqueness of a variable.