{"name":"@deckyard/statfiles","description":"Readers for SPSS, Stata and SAS data files","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/deckyard/deck-statfiles.git","ref":"0.1.0","commit":"8119b037a765036466a493e71b691fc70f7b4aac","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":[],"keywords":["spss","stata","sas","sav","dta"],"description":"Readers for SPSS, Stata and SAS data files","publishedAt":"1794674161","repoId":1457836150,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.3.0":{"version":"0.3.0","kind":"git","url":"https://github.com/deckyard/deck-statfiles.git","ref":"0.3.0","commit":"987040dcaceebdb4da82558b83f12b5c2942b74c","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.28.0"},"capabilities":[],"keywords":["spss","stata","sas","sav","dta"],"description":"Readers for SPSS, Stata and SAS data files","publishedAt":"1795646717","repoId":1457836150,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/statfiles\n\n[![test](https://github.com/deckyard/deck-statfiles/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-statfiles/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-statfiles/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-statfiles)](https://github.com/deckyard/deck-statfiles/releases/latest)\n\nReaders for the data files of SPSS™, Stata™ and SAS™, for\n[Jennifer](https://jennifer-lang.dev/) programs: Stata `.dta` (formats\n104 to 119), SPSS `.sav`, `.zsav` and portable `.por`, SAS XPORT `.xpt`\n(versions 5 and 8), and SAS data sets `.sas7bdat` with the value labels\nof `.sas7bcat` format catalogs. Every reader returns one `Dataset`: the\nvariables with their labels, display formats, value labels and declared\nmissing values, and the cells by column, ready for `stats` and `linalg` or\nas CSV. Read-only.\n\n**[Documentation](https://deckyard.github.io/deck-statfiles/)**\n\n## Install\n\n```sh\njvc add @deckyard/statfiles\n```\n\nThis vendors the deck to `vendor/\u003cscope\u003e/statfiles/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`\u003cscope\u003e-statfiles-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@deckyard/statfiles/\" as statfiles;\n\ndef ds as statfiles.Dataset init statfiles.read(fs.readBytes(\"survey.sav\"));\nio.printf(\"%d rows, mean age %.1f\\n\", $ds.rowCount, stats.mean(statfiles.present($ds, \"age\")));\nfs.writeString(\"survey.csv\", statfiles.toCsv($ds, true));\n```\n\n`examples/` has one program per format: `dta_describe.j`, `sav_summary.j`,\n`por_summary.j`, `xpt.j` and `sas7bdat.j`.\n\n## Requirements\n\nJennifer 0.28.0 or newer. No capability: the readers take the file as\n`bytes`, so reading it from disk is the caller's.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/statfiles_test.j   # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n\n## Trademarks\n\nSAS™ is a trademark of SAS Institute Inc. SPSS™ and IBM™ are trademarks of\nInternational Business Machines Corporation. Stata™ is a trademark of\nStataCorp LLC. Other product and company names may be trademarks of their\nrespective owners. They are used only to identify the products this deck\nworks with. This deck is an independent project, not affiliated with,\nsponsored or endorsed by SAS Institute Inc., International Business Machines\nCorporation or StataCorp LLC.\n"}