Changelog
Source:NEWS.md
polarsreadstat 0.2.0
- Load
polarspackage when loadingpolarsreadstatpackage now. -
read_readstat_metadata()returns the labels of Stata and SAS special missing values inmissing_labels, keyed by their codes (".a",".A"). - New
missing_codesargument of the data readers: adds a<name>_missingcolumn with the code of each special or user-defined missing value.
polarsreadstat 0.1.0
Initial release.
-
Multi-threaded data readers : read SAS (
.sas7bdat,.xpt), Stata (.dta, formats 102–119), and SPSS (.sav,.zsav,.por) files into Polars DataFrames. Supports selective column loading (col_select) and row slicing (skip,n_max).- The general function
read_readstat() - Format-specific wrappers:
- Haven-compatible aliases:
-
read_stata()(alias forread_dta()) -
read_spss()(read_sav()for.savand.zsav,read_por()for.por)
-
- The general function
-
Metadata readers : extract metadata without reading row data, returning a variable summary data frame (labels, display formats, types, and SPSS display settings) along with value labels and SPSS user-defined missing values formatted to match
haven’slabels,na_values, andna_rangeattributes.- The general function
read_readstat_metadata() - Format-specific wrappers:
- Haven-compatible aliases:
-
read_stata_metadata()(alias forread_dta_metadata()) -
read_spss_metadata()(read_sav_metadata()for.savand.zsav,read_por_metadata()for.por)
-
- The general function