ReadStat icon indicating copy to clipboard operation
ReadStat copied to clipboard

Command-line tool (+ C library) for converting SAS, Stata, and SPSS files 💾

Results 73 ReadStat issues
Sort by recently updated
recently updated
newest added

I am trying to generate SPSS and Stata files using CSV files + JSON metadata as input as described [here](https://github.com/WizardMac/ReadStat#command-line-usage-with-csv-input). However, in the generated files, every numeric variable has decimals,...

CLI

Is it possible to change metadata in existing sav (SPSS) files? If possible can you kindly provide example for library usage?

SPSS

I have a Stata file with the following label sets: ``` . sysuse auto2, clear (1978 automobile data) . label list repair: 1 Poor 2 Fair 3 Average 4 Good...

SAS
Stata
CLI

When trying to get the file label from a DTA file I get a non-deterministic result. The code is as follows: ```c++ #include "readstat.h" struct Context { const char* label...

The result of calling readstat_get_modified_time on the same file is different for Windows and Mac. The code for both platforms is as follows: ```c++ #include "readstat.h" struct Context { time_t...

Stata

This PR is a fix for tidyverse/haven#683 in line with the change to DTA timestamp reading that fixed tidyverse/haven#488. If the timestamp string is invalid the parser will ignore it...

This is mostly copy & pasted from https://github.com/Roche/pyreadstat/issues/193. I have worked on improving [Pandas'](https://pandas.pydata.org/) SAS7BDAT reader performance in past couple of days. ReadStat was a great source of reference to...

Hi @evanmiller, This PR is another go at #252 (cc tidyverse/haven#615). As suggested I've reworked the bad byte handler so it's called from surrounding code when a conversion fails instead...

This would allow language wrapping libraries such as pyreadstat to use a memory buffer instead of a file on disk as source. (https://github.com/WizardMac/ReadStat/pull/179 tried to address this, but checks failed.)

enhancement
API