powered by
This function allows you to scrape MiLB game logs for individual batters from FanGraphs.
fg_milb_batter_game_logs(playerid, year)
Returns a tibble of Minor League batter game logs with the following columns:
The batter's minor league ID from FanGraphs.
The season for which game logs should be returned.
# \donttest{ try(fg_milb_batter_game_logs(playerid = "sa3010868", year=2021)) # }
Run the code above in your browser using DataLab