Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SPSS system missings read as NaN #223
After installing the v1.0.0 update I noticed a bunch of
It appears that the
Here is a dataset with just one variable to illustrate the issue.
This variable has 12 missing values in the
Here is code to reproduce the issue with that dataset:
changed the title
after updating to v1.0.0, system missing values in .sav file are now read into R as "NaN"
Jan 25, 2017
I think this should work. I had some trouble getting the install/loading sequence automated, but it passed reprex, so I think it gives you what you need. Let me know if you have any questions!
df <- tibble::tibble(x = c(1, 2, NA, 4, NA)) tempfile <- tempfile(fileext = ".sav") write_sav(df, tempfile) read_sav(tempfile)$x
See attached file for example data set.
Hello! I would like to ask when the