BillPetti / baseballr

A package written for R focused on baseball analysis. Currently in development.
billpetti.github.io/baseballr
Other
369 stars 99 forks source link

Fix bug in fg_pitcher_leaders associated with `season` capitalization #328

Closed bbwieland closed 7 months ago

bbwieland commented 7 months ago

The fg_pitcher_leaders() function currently returns an error even when all parameters are correctly specified as a result of dplyr::select() attempting to access the Season column, when the API query returns season (lowercase) instead. This PR fixes the error within the fg_pitcher_leaders() function. It may be worth further investigation into potential effects of this renaming on other fg_ functions.