I have a .sav (SPSS) data file. The file is password protected, and I have the password. I do not have SPSS.
I typically use the haven
package (read_sav()
) to import .sav
files into R
; however, I cannot find a reference for how to unlock the file with the password.
No mention of "password" exists in the haven
manual, so I suspect I will need either another package or script to supplement.
Can haven
unlock data with passwords (if so how)?
Is there another option to access the .sav
data and provide the same data format as haven::read_sav()
:
A tibble, data frame variant with nice defaults. Variable labels are stored in the "label" attribute of each variable.
The format is important because I have existing scripts that assume the format of the data matches the labelled-variables format from haven::read_sav()
.