baseballr icon indicating copy to clipboard operation
baseballr copied to clipboard

Fangraphs and Spotrac Team Data Functions

Open camdenk opened this issue 2 years ago • 0 comments

  • Adapted the existing fg_*_leaders() functions to pull from the team-level data, rather than the individual players. In doing so, I also removed a few of the columns that wouldn't apply to this dataset (playerid, Name, Age).
  • Added a sptrc_team_active_payroll() function to return contract data for players on a MLB team's payroll in a given year and a sptrc_league_payrolls() function to return a quick look at payrolls for the entirety of MLB

camdenk avatar Jul 01 '22 01:07 camdenk