Fix labeled string values bug#53
Conversation
|
Well, the reason why value labels over strings are not allowed here (intentionally) is because |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
=======================================
Coverage 99.91% 99.92%
=======================================
Files 11 11
Lines 1249 1254 +5
=======================================
+ Hits 1248 1253 +5
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Right, I see! Thanks, I'm not familiar with But I of course defer to you on implementation, and I'm happy to contribute more time to implement things another way, if you suggest a direction. |
PR proposing a fix to issue #52, with a brief test of the file read. I'm new to this repository and the topic, so I may have made some blunders. I haven't worked out if we would ideally read in string columns with appropriate string lengths, nor how to do that.
A file to recreate the issue is added at data/string_labeled_value_eg.sav. Reading this in with haven, and this branch, gives the correct string value => string label mapping, showing the regions of Belgium (in this case). But on main, the regions of Belgium are not read in.
Tests run fine on my machine.