library("psych350lab")
# Read SPSS file with default settings
data <- get_spss_data("data/mydata.sav")
# Read with verbose output to check for missing values
data <- get_spss_data("data/mydata.sav", verbose = TRUE)Read SPSS Data File
Description
Reads an SPSS .sav file, converts user-missing values to NA, and removes all labels.
Usage
get_spss_data(file_path, check_filter = TRUE, verbose = FALSE)
Arguments
file_path
|
Character string. Path to the .sav file.
|
check_filter
|
Logical. If TRUE, checks for and applies any active SPSS filter variable. Default is TRUE.
|
verbose
|
Logical. If TRUE, prints diagnostic information.
|
Value
A tibble with numeric values and no SPSS labels.