Learn R Programming

baseballr (version 0.8.6)

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