Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_sav default is to NOT encode user defined data #749

Closed
tk27182 opened this issue Mar 4, 2024 · 1 comment
Closed

read_sav default is to NOT encode user defined data #749

tk27182 opened this issue Mar 4, 2024 · 1 comment

Comments

@tk27182
Copy link

tk27182 commented Mar 4, 2024

When I load a dataset given to me from someone who made it using SPSS, and they encode certain negative values as different reasons for the value missing, I'd expect that those negative values to be shown by default. However, all those values are NA! After looking it up, I needed to set user_na = TRUE. Why is FALSE the default value for this argument? It seems setting it to TRUE is more intuitive.

@gorcha
Copy link
Member

gorcha commented Oct 10, 2024

Hi @tk27182,

I believe this default was initially used because it was assumed that missing data would generally be removed straight away after loading for data analysis, and that this was the most intuitive default for simple use.

Agree that this is not necessarily in line with general usage though! Changing the default would be a breaking change so there are no plans to do this at the moment, but it is something I'm considering for a future major release.

Thanks for the feedback!

@gorcha gorcha closed this as completed Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants