{"id":32207310,"url":"https://github.com/colindouglas/retrosheet","last_synced_at":"2025-10-22T05:51:14.906Z","repository":{"id":56934622,"uuid":"256011236","full_name":"colindouglas/retrosheet","owner":"colindouglas","description":"R package for importing historical baseball data from Retrosheet","archived":false,"fork":false,"pushed_at":"2024-02-28T14:44:50.000Z","size":150,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-22T05:51:03.460Z","etag":null,"topics":["baseball-analytics","baseball-data","baseball-statistics","cran","gamelog","retrosheet"],"latest_commit_sha":null,"homepage":"https://CRAN.R-project.org/package=retrosheet","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colindouglas.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-15T19:03:11.000Z","updated_at":"2024-06-11T08:09:42.000Z","dependencies_parsed_at":"2024-02-27T23:33:24.139Z","dependency_job_id":"3289257f-81d4-45d3-806e-a309f8ae07ea","html_url":"https://github.com/colindouglas/retrosheet","commit_stats":{"total_commits":101,"total_committers":3,"mean_commits":"33.666666666666664","dds":0.4356435643564357,"last_synced_commit":"b5574ae0442460d26456c7ccf5ca46470046fd1b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/colindouglas/retrosheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindouglas%2Fretrosheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindouglas%2Fretrosheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindouglas%2Fretrosheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindouglas%2Fretrosheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colindouglas","download_url":"https://codeload.github.com/colindouglas/retrosheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindouglas%2Fretrosheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280389295,"owners_count":26322507,"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-10-22T02:00:06.515Z","response_time":63,"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":["baseball-analytics","baseball-data","baseball-statistics","cran","gamelog","retrosheet"],"created_at":"2025-10-22T05:51:12.531Z","updated_at":"2025-10-22T05:51:14.901Z","avatar_url":"https://github.com/colindouglas.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE, \n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  message=FALSE, \n  warning=FALSE\n)\n``` \n# retrosheet\n\u003c!-- badges: start --\u003e\n\n[![R-CMD-check](https://github.com/colindouglas/retrosheet/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/colindouglas/retrosheet/actions/workflows/R-CMD-check.yaml)\n[![CRAN\\_Status\\_Badge](https://www.r-pkg.org/badges/version/retrosheet)](https://cran.r-project.org/package=retrosheet)\n[![License: GPL 2.0](https://img.shields.io/badge/license-GPL%20(%3E%3D%202)-blue.svg)](https://opensource.org/license/gpl-2-0)\n[![GitHub commit](https://img.shields.io/github/last-commit/colindouglas/retrosheet)](https://github.com/colindouglas/retrosheet/commit/main)\n[![Downloads](https://cranlogs.r-pkg.org/badges/last-week/retrosheet)](https://cran.r-project.org/package=retrosheet)\n\u003c!-- badges: end --\u003e\nImport Retrosheet data as a structured R object\n\n`retrosheet` is an R package that downloads and parses the single-season event, gamelog, roster, and schedule\nfiles from [retrosheet.org](https://www.retrosheet.org/) into structured R objects for further analysis.\n\n**Note:** As of retrosheet 1.1.0, this repo contains the version available on CRAN. Older versions can be found [here](https://github.com/rmscriven/retrosheet).\n\n## Installation\n`retrosheet` can be installed from CRAN, or development versions installed from Github.\n```r\n# Install from CRAN\ninstall.packages(\"retrosheet\")\n\n# Install development version from Github\n# install.packages(\"devtools\")\ndevtools::install_github(\"colindouglas/retrosheet\")\n```\n\n## Usage\n* `getRetrosheet()` - This workhorse function returns the full seasonal data associated with the user-entered \n arguments\n    * Use the `cache` argument to save a local cache and avoid stressing retrosheet.org\n    * Use `get_retrosheet()` as a drop-in replacement to return tibbles instead of matrices\n* `getPartialGamelog()` - An alternative to returning the full gamelog files.  This function allows the user\n to choose the columns and date. Column names are made available by the global object `gamelogFields`\n \nAlso included are convenience functions \n\n* `getFileNames()` - for obtaining a list of all zip files currently available for use by this package\n* `getTeamIDs()` - for providing the team ID value to be used in the `team` argument of `getRetrosheet()`\n* `getParkIDs()` - for ballpark ID and name information\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindouglas%2Fretrosheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolindouglas%2Fretrosheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindouglas%2Fretrosheet/lists"}