-
Notifications
You must be signed in to change notification settings - Fork 70
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
Using the CSV input always defaults to 2 decimal variable #177
Comments
I also have the same problem. |
What is your output format? SAV, DTA, etc |
|
Any ideas, @ivarref? |
A Simple Examplecsv 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 spssThe decimals value of both variables is 2. |
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: Particularly using jasmine strict mode to avoid some JSON boundary parsing errors: Could that be relevant? Regards. Edit: JSON boundary parsing errors, not CSV. |
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.
The text was updated successfully, but these errors were encountered: