-
Notifications
You must be signed in to change notification settings - Fork 116
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
SAS catalog: value label sets with long names aren't being matched #121
Comments
Currently the short (8-byte) name is always being returned, but I'm not sure that's correct. See tidyverse/haven#121. Let's return the long name and see if that fixes user-reported issues.
I've pushed a possible fix to ReadStat here: WizardMac/ReadStat@ac1a2db |
@cullenjd Please try: devtools::install_github("evanmiller/haven", ref="update-readstat") |
@evanmiller - I updated but I'm still not getting the value labels from the catalog file.
Should be:
|
@cullenjd - Do you have a small sample data file you can share? |
I am seeing the labels:
It appears the In any event it appears that labels are imported correctly with the patch. I will leave this issue open until the changes are merged into haven/master. |
@cullenjd - the variables are imported as In your example, use opdata$workstat <- as_factor(opdata$workstat)
table(opdata$workstat) |
SAS catalog files can name their formats (value label sets) with both 8-byte short name and a 32-byte long name. At present ReadStat is returning the short name, which may not be the correct behavior. @cullenjd has reported that his value labels are not being properly applied (see previous discussion at #34). It is likely an issue with ReadStat but could also be something with haven.
The text was updated successfully, but these errors were encountered: