ReadStat is an excellent C library by Evan Millers that allows to read
files from Stata, SPSS and SAS.
Evan wrote a wrapper for ReadStat in the Dataread.jl
package https://github.com/WizardMac/DataRead.jl
However, the package was not updated with the most recent API of ReadStat.
I've been trying to solve this without success (see the WIP pull request in
the repository)
The hard part is to write a Julia function (handle_value) that accepts a C
structure with a union field.
typedef struct readstat_value_s {
union {
char char_value;
float float_value;
double double_value;
int16_t i16_value;
int32_t i32_value;
char *string_value;
} v;
readstat_types_t type;
char tag;
int is_system_missing:1;
int is_considered_missing:1;
} readstat_value_t;
If someone has some time to look at this, that'd be great!