{"id":26075889,"url":"https://github.com/sjewo/readstata13","last_synced_at":"2025-08-17T14:07:43.644Z","repository":{"id":20091400,"uuid":"23360690","full_name":"sjewo/readstata13","owner":"sjewo","description":"Package to read the Stata 13 (and newer) file format into a R data.frame","archived":false,"fork":false,"pushed_at":"2025-04-23T13:14:39.000Z","size":895,"stargazers_count":41,"open_issues_count":9,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-23T14:25:26.688Z","etag":null,"topics":["rstats","stata"],"latest_commit_sha":null,"homepage":"https://sjewo.github.io/readstata13/","language":"R","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/sjewo.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","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,"zenodo":null}},"created_at":"2014-08-26T17:36:21.000Z","updated_at":"2024-05-25T22:47:16.000Z","dependencies_parsed_at":"2023-02-19T01:31:04.026Z","dependency_job_id":"2ae78749-cabd-437c-bcda-0eed5e49f04d","html_url":"https://github.com/sjewo/readstata13","commit_stats":{"total_commits":608,"total_committers":9,"mean_commits":67.55555555555556,"dds":0.6447368421052632,"last_synced_commit":"12151bb8881de4014eac155542fd2cb193b94dd2"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/sjewo/readstata13","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjewo%2Freadstata13","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjewo%2Freadstata13/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjewo%2Freadstata13/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjewo%2Freadstata13/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjewo","download_url":"https://codeload.github.com/sjewo/readstata13/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjewo%2Freadstata13/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270856775,"owners_count":24657700,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["rstats","stata"],"created_at":"2025-03-09T01:06:56.530Z","updated_at":"2025-08-17T14:07:43.632Z","avatar_url":"https://github.com/sjewo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"readstata13: Read and write the ‘Stata’ file format with R\n================\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/readstata13)](https://cran.r-project.org/package=readstata13)\n[![Build\nstatus](https://github.com/sjewo/readstata13/workflows/R-CMD-check/badge.svg)](https://github.com/sjewo/readstata13/actions?workflow=R-CMD-check)\n[![CRAN\nDownloads](https://cranlogs.r-pkg.org/badges/readstata13)](https://cran.r-project.org/package=readstata13)\n\u003c!-- badges: end --\u003e\n\nPackage to read and write all Stata file formats (version 17 and older)\ninto a R data.frame. The dta file format versions 102 to 121 are\nsupported (including dtas files).\n\nThe function `read.dta` from the foreign package imports only dta files\nfrom Stata versions \\\u003c= 12. Due to the different structure and features\nof dta 117 files, we wrote a new file reader in Rcpp.\n\nAdditionally the package supports many features of the Stata dta format\nlike label sets in different languages (`?set.lang`) or business\ncalendars (`?as.caldays`).\n\n## Installation\n\nThe package is hosted on CRAN.\n\n``` r\ninstall.packages(\"readstata13\")\n```\n\n## Usage\n\n``` r\nlibrary(readstata13)\ndat \u003c- read.dta13(\"path to file.dta\")\nsave.dta13(dat, file=\"newfile.dta\")\n```\n\n## Development Version\n\nTo install the current release from github you need the platform\nspecific build tools. On Windows a current installation of\n[Rtools](https://cran.r-project.org/bin/windows/Rtools/) is necessary,\nwhile OS X users need to install\n[Xcode](https://apps.apple.com/us/app/xcode/id497799835).\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"sjewo/readstata13\", ref=\"0.11\")\n```\n\nTo install the current development version from github:\n\n``` r\nremotes::install_github(\"sjewo/readstata13\", ref=\"testing\")\n```\n\n## Changelog and Features\n\n| Version | Changes |\n|:---|:---|\n| 0.11.0 | Initial support for Stata 18. Import .dtas files (Stata framesets) via `read.dtas()`. Alias variables are currently ignored with a warning. |\n|  | The `select.cols` argument accepts either variable names or column indices. |\n|  | Fix compilation on musl and other non-glibc based systems. |\n|  | Add package alias to readstata13.Rd |\n\nSee [News](NEWS) for the full changelog.\n\n## readstata13 and foreign\n\nMost attributes of the resulting data.frame are largely similar to the\ndata.frames produced by `foreign`. Since newer Stata files require some\nadditional attributes, the results of `all.equal()` and `identical()`\nwill be `FALSE` for data.frames read by `foreign::read.dta` and\n`read.dta13()`. Otherwise, the data.frames produced by both functions\nare identical.\n\n``` r\nlibrary(foreign)\nlibrary(readstata13)\n\n# with factors\nr12 \u003c- read.dta(\"http://www.stata-press.com/data/r12/auto.dta\")\nr13 \u003c- read.dta13(\"http://www.stata-press.com/data/r13/auto.dta\")\n\nall.equal(r12, r13, check.attributes = FALSE)\n\n# without factors\nr12 \u003c- read.dta(\"http://www.stata-press.com/data/r12/auto.dta\", \n                convert.factors = FALSE)\nr13 \u003c- read.dta13(\"http://www.stata-press.com/data/r13/auto.dta\", \n                  convert.factors = FALSE)\n\nall.equal(r12, r13, check.attributes = FALSE)\n```\n\n## Authors\n\n[Marvin Garbuszus](mailto:jan.garbuszus@ruhr-uni-bochum.de)\n([JanMarvin](https://github.com/JanMarvin)) and [Sebastian\nJeworutzki](mailto:Sebastian.Jeworutzki@ruhr-uni-bochum.de)\n([sjewo](https://github.com/sjewo))\n\n## Licence\n\nGPL2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjewo%2Freadstata13","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjewo%2Freadstata13","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjewo%2Freadstata13/lists"}