
Run all data checks.
check_all.RdRun 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
.pdffile- encoding
Optional: The character encoding used for reading the
.savfile. 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
GADSdatobject. IfNULL, the first variable in the data set is taken as theidVar.- 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.
Examples
dataset <- system.file("extdata", "example_data2.sav", package = "eatFDZ")
out <- check_all(dataset)
#> Test Result
#> 1 lengthy_variable_names passing
#> 2 special_signs_variable_names Issues detected
#> 3 special_signs_meta_data Issues detected
#> 4 missing_IDs Issues detected
#> 5 duplicate_IDs Issues detected
#> 6 missing_variable_labels Issues detected
#> 7 missing_value_labels Issues detected
#> 8 missing_range_tags Issues detected
#> 9 missing_regex_tags Issues detected
#> 10 statistical_disclosure_control Issues detected
#> 11 character_variables Issues detected
#> 12 docu_check Not tested