Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Pre-2002 data bug in fg_batter_leaders function #320

Conversation

williamohandley
Copy link
Contributor

Removed lines breaking code in both fg_pitcher_leaders and fg_batter_leaders, as pre-2002 seasons don't have the FB_pct1 column, breaking the dplyr chain

Removed variable renaming line that was breaking the function
Removed renaming line that was breaking the function when used for years < 2002 due to fangraphs' addition of pitch f/x data
@williamohandley williamohandley changed the title Williamohandley patch 1 Fixing Pre-2002 data bug in fg_batter_leaders function Jan 9, 2024
@saiemgilani saiemgilani merged commit e855983 into BillPetti:development_branch Jan 9, 2024
0 of 4 checks passed
saiemgilani added a commit that referenced this pull request Jan 9, 2024
* Fixing Pre-2002 data bug in fg_batter_leaders function  (#320)

* Update fg_pitcher_leaders.R

Removed variable renaming line that was breaking the function

* Update fg_batter_leaders.R

Removed renaming line that was breaking the function when used for years < 2002 due to fangraphs' addition of pitch f/x data

* update tests

---------

Co-authored-by: williamohandley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants