{"id":19165227,"url":"https://github.com/cadedupont/mlb-data-analysis","last_synced_at":"2026-06-23T07:31:57.682Z","repository":{"id":220355236,"uuid":"751412971","full_name":"cadedupont/mlb-data-analysis","owner":"cadedupont","description":"Performing analysis on dataset of active MLB players in R","archived":false,"fork":false,"pushed_at":"2024-02-02T20:36:26.000Z","size":1191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T23:14:42.113Z","etag":null,"topics":["baseball-analytics","data-analysis","data-science","mlb-stats-api","r"],"latest_commit_sha":null,"homepage":"","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/cadedupont.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-02-01T15:07:15.000Z","updated_at":"2024-03-11T00:32:46.000Z","dependencies_parsed_at":"2024-11-09T09:27:48.582Z","dependency_job_id":"974c4263-5deb-469c-96ba-8689023248b8","html_url":"https://github.com/cadedupont/mlb-data-analysis","commit_stats":null,"previous_names":["cadedupont/mlb-data-analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cadedupont/mlb-data-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadedupont%2Fmlb-data-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadedupont%2Fmlb-data-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadedupont%2Fmlb-data-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadedupont%2Fmlb-data-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cadedupont","download_url":"https://codeload.github.com/cadedupont/mlb-data-analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadedupont%2Fmlb-data-analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34680620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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","data-analysis","data-science","mlb-stats-api","r"],"created_at":"2024-11-09T09:27:03.554Z","updated_at":"2026-06-23T07:31:57.652Z","avatar_url":"https://github.com/cadedupont.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MLB Data Analysis\n\nProject intended to familiarize myself with data analysis in R. The data used is from the [Lahman database](https://cran.r-project.org/web/packages/Lahman/Lahman.pdf), which contains a wide variety of statistics for Major League Baseball (MLB).\n\n## [`era_vs_age.R`](src/era_vs_age.R)\n\nCreates a scatter plot of the earned run average (ERA) of MLB pitchers against their age in the 2022 season. The data utilizes the `Pitching` table left-joined with the `People` table in the database to get the age of the pitchers.\n\nTo be qualified for the plot, a pitcher must have thrown at least 100 innings in the season and played in a minimum of 20 games. This is to ensure that the pitcher had a significant amount of playing time in the season (i.e. ignore position players that have pitched, pitchers that were injured, etc.).\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"/plots/era_vs_age.png\" alt=\"ERA vs Age\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n## [`win_vs_salary.R`](src/win_vs_salary.R)\n\nCreates a scatter plot of the win percentage of MLB teams in 2016 against their total expenditure on players salaries for that season.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"/plots/win_vs_salary.png\" alt=\"Win % vs Salary\" width=\"100%\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadedupont%2Fmlb-data-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadedupont%2Fmlb-data-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadedupont%2Fmlb-data-analysis/lists"}