Learn R Programming

baseballr (version 0.8.6)

pitcher_game_logs_fg: Scrape Pitcher Game Logs from FanGraphs

Description

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

Usage

pitcher_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 {
pitcher_game_logs_fg(playerid = 104, year = 2006)
# }

Run the code above in your browser using DataLab