Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

baseballr (version 0.7.0)

batter_game_logs_fg: Scrape Batter Game Logs from FanGraphs

Description

This function allows you to scrape game logs by year for a batter from FanGraphs.com.

Usage

batter_game_logs_fg(playerid, year = 2017)

Arguments

playerid

This is the playerid used by FanGraphs for a given player

year

The season for which game logs should be returned (use the YYYY format)

Examples

Run this code
# NOT RUN {
batter_game_logs_fg(playerid = 6184, year = 2017)
# }

Run the code above in your browser using DataLab