With the package, foreignI am reading the .sav file. When I open the file with PSPP, there are 95 variables. However, it read.spss("file")responds with a list of 353 variables. Additional variables are a filled blank field with 220 spaces. Has anyone ever experienced this?
Before you ask, I cannot provide a reproducible example because the data file and its contents are property.
One obvious solution would be to look for list items containing only spaces, and set them to a NULL list item or each item with 220 spaces in NA and then drop the NA columns.
But I would like it if there was no need to further process my files. Can anyone fix this?
source
share