JanMarvin / readspss

Read the SPSS file formats
https://janmarvin.github.io/readspss/
GNU General Public License v2.0
12 stars 1 forks source link

Mimic SPSS when writing missings for uncompressed sav-files #14

Closed JanMarvin closed 5 years ago

JanMarvin commented 5 years ago

As the title says. This would help PSPP to handle such files. SPSS itself does not bother with our sav-files as one can see here. Otherwise the issue it not urgent.

dd <- data.frame(x = 1, y = NA)

write.sav(dd, "/tmp/test.sav", compress = F)
read.sav("/tmp/test.sav")
JanMarvin commented 5 years ago

And on top of it, I am not even sure, if there are specific bounds for SPSS to accept values as non-missings. -DBL_MAX is a missing, but is it >= -DBL_MAX or does it start earlier? And is there an upper bound as well? Is it DBL_MAX?