powered by
This function allows you to scrape game logs by year for a batter from FanGraphs.com.
batter_game_logs_fg(playerid, year = 2017)
This is the playerid used by FanGraphs for a given player
The season for which game logs should be returned (use the YYYY format)
# NOT RUN { batter_game_logs_fg(playerid = 6184, year = 2017) # }
Run the code above in your browser using DataLab