check_all: Run all data checks.

check_allR Documentation

Run all data checks.

Description

Run all data checks.

Usage

check_all(
  sav_path,
  pdf_path = NULL,
  encoding = NULL,
  missingRange = -50:-99,
  missingRegex = "missing|omitted|not reached|nicht beantwortet|ausgelassen",
  idVar = NULL,
  sdcVars = NULL
)

Arguments

sav_path

Path to the SPSS file

pdf_path

Path to the .pdf file

encoding

Optional: The character encoding used for reading the .sav file. The default, NULL, uses the encoding specified in the file, but sometimes this value is incorrect and it is useful to be able to override it.

missingRange

Numerical range for missing tags.

missingRegex

Regular expression for value labels for missing tags.

idVar

Name(s) of the identifier variable in the GADSdat object. If NULL, the first variable in the data set is taken as the idVar.

sdcVars

Variable names of variables with potential statistical disclosure control issues.

Details

This functions calls check_file_name, check_var_names, check_meta_encoding, check_id, check_var_labels, checkMissingValLabels, check_missing_range, check_missing_regex, sdc_check, and check_docu.

Value

A data.frame.

Examples

dataset <- system.file("extdata", "example_data2.sav", package = "eatFDZ")
out <- check_all(dataset)

beckerbenj/eatFDZ documentation built on June 11, 2025, 6:49 a.m.