I get a lot of datasets that arrive as .dat
files with syntax files for converting to SPSS (.sps
). I'm an R user, so I need to convert the .dat
file into a .sav
that R can read.
In the past, I've used PSPP to do this manually. (I can't afford SPSS!) But I'd MUCH prefer a programmatic solution.
I thought pspp-convert
would do the trick, but there's something I'm not understanding about how that works in terms of inputting the syntax file:
My files are:
- data.dat
- data.sps (which correctly points to data.dat)
I tried
pspp-convert data.sps data.sav
But get
`data.sps' is not a system or portable file.
Makes sense since the input is supposed to be a portable file. Am I trying to do something beyond the scope of this CLI?
Generally speaking, there MUST be some way to apply an SPS file to a DAT file to get a SAV file (or any other portable file) back, right?