Repository navigation
Read and write value labels for SPSS string variables - #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.55% 99.63% +0.07%
==========================================
Files 12 12
Lines 1361 1372 +11
==========================================
+ Hits 1355 1367 +12
+ Misses 6 5 -1 ☔ View full report in Codecov by Harness. 🚀 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. |
1b036df to
911b28a
Compare
|
@jamesalster I realized that what I said earlier is wrong. |
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.