{"id":23611337,"url":"https://github.com/janmarvin/readspss","last_synced_at":"2025-05-12T19:02:48.700Z","repository":{"id":8031048,"uuid":"44098386","full_name":"JanMarvin/readspss","owner":"JanMarvin","description":"Read the SPSS file formats ","archived":false,"fork":false,"pushed_at":"2025-03-27T21:50:26.000Z","size":921,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T22:30:17.215Z","etag":null,"topics":["por","r","r-package","rcpp","reader","sav","spss","zsav"],"latest_commit_sha":null,"homepage":"https://janmarvin.github.io/readspss/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JanMarvin.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-12T09:44:45.000Z","updated_at":"2025-03-27T21:46:50.000Z","dependencies_parsed_at":"2023-10-01T21:25:32.080Z","dependency_job_id":"23056e3f-a23c-4a6d-aead-d77c12f2f7a0","html_url":"https://github.com/JanMarvin/readspss","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadspss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadspss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadspss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanMarvin%2Freadspss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanMarvin","download_url":"https://codeload.github.com/JanMarvin/readspss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805850,"owners_count":21967052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["por","r","r-package","rcpp","reader","sav","spss","zsav"],"created_at":"2024-12-27T16:14:09.053Z","updated_at":"2025-05-12T19:02:48.655Z","avatar_url":"https://github.com/JanMarvin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  out.width = \"100%\"\n)\nlibrary(readspss)\n```\n\n# readspss\n![R-CMD-check](https://github.com/JanMarvin/readspss/workflows/R-CMD-check/badge.svg) [![Codecov test coverage](https://codecov.io/gh/JanMarvin/readspss/branch/main/graph/badge.svg)](https://app.codecov.io/gh/JanMarvin/readspss?branch=main) [![r-universe](https://janmarvin.r-universe.dev/badges/readspss)](https://janmarvin.r-universe.dev/readspss)\n\n\nR package using Rcpp to parse an SPSS file into a data.frame(). Currently \n`read.sav` and `read.por` are the main functions and feature of this package.\nWriting of SPSS files is provided by `write.por` and `write.sav`. Writing is\nlimited to uncompressed por and sav files and to compressed sav file.\n\nIt works. Its read function is extensively tested on approximately 600+ \nsav-files and ~100 por-files. The code is maturing and is frequently tested. The\nread functions imports everything into a data frame. Including long strings and\nlabels. Various features such as importing of value label or missings are tested\nand are working as intended.\n\nThe package features reading of\n\n* sav files,\n* zsav files,\n* encrypted sav files and\n* por files\n\nand (experimental) writing support of (un)compressed\n\n* sav files and\n* zsav files and\n* por files.\n\nBecause of the R code wrapped Rcpp functions the package is pretty fast. The \nR code for factor conversion slows things down a bit, changing the encoding a\nbit more.\n\nIn comparison to `haven` and `foreign` this package preforms pretty well. It\nreads more files than each of its predecessors, some are only readable using\n`readspss` and it covers a few more cases of missing values.\n\nFocus was not so much on winning every benchmark, but reading all features of\nan SPSS file and to be as exactly as possible. So some benchmarks are\nwon and others are lost. It is entirely up to the task. Besides the data\nitself `readspss` ships additional information provided by the SPSS files like\nthe data label, documentation, date and timestamp.\n\nReading of sav and por files is considered feature complete.\n\nWriting of (un)compressed sav and por files is implemented and considered \nworking. Unsupported features are reading and writing of dates (might no\nlonger be true) and writing of long strings.\n\n## Installation\n\nWith `remotes`:\n```R\nremotes::install_github(\"JanMarvin/readspss\")\n```\n\nOr from [r-universe](https://r-universe.dev/) with:\n\n``` r\noptions(repos = c(\n  janmarvin = 'https://janmarvin.r-universe.dev',\n  CRAN = 'https://cloud.r-project.org'))\ninstall.packages('readspss')\n```\n\n## Usage\n\n```{r}\nfls \u003c- system.file(\"extdata\", \"electric.sav\", package = \"readspss\")\nflp \u003c- system.file(\"extdata\", \"electric.por\", package = \"readspss\")\n\ndf_s \u003c- read.sav(fls)\ndf_p \u003c- read.por(flp)\n\nall.equal(df_s, df_p, check.attributes = FALSE)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmarvin%2Freadspss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanmarvin%2Freadspss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanmarvin%2Freadspss/lists"}