Learn R Programming

baseballr (version 1.5.0)

fangraphs: FanGraphs Functions Overview

Description

fg_pitcher_game_logs():

Scrape Pitcher Game Logs from FanGraphs.

fg_batter_game_logs():

Scrape Batter Game Logs from FanGraphs.

fg_milb_pitcher_game_logs():

Scrape MiLB game logs for pitchers from Fangraphs, combining 'standard' and 'advanced' tabs.

fg_milb_batter_game_logs():

Scrape MiLB game logs for batters from Fangraphs, combining 'standard' and 'advanced' tabs.

fg_batter_leaders():

Scrape Batter Leaderboards from FanGraphs.

fg_pitcher_leaders():

Scrape Pitcher Leaderboards from FanGraphs.

fg_guts():

Scrape FanGraphs.com Guts!.

fg_park():

Scrape Park Factors from FanGraphs.com.

fg_park_hand():

Scrape Park Factors by handedness from FanGraphs.com.

Arguments

Details

Scrape Pitcher Game Logs from FanGraphs

  fg_pitcher_game_logs(playerid = 104, year = 2006)

Scrape Batter Game Logs from FanGraphs

  fg_batter_game_logs(playerid = 6184, year = 2017)

Scrape MiLB game logs for pitchers from Fangraphs

  fg_milb_pitcher_game_logs(playerid = "sa3004210", year=2017)

Scrape MiLB game logs for batters from Fangraphs

  fg_milb_batter_game_logs(playerid = "sa917940", year=2018)

Scrape Batter Leaderboards from FanGraphs

  fg_batter_leaders(x = 2015, y = 2015, qual = 400)

Scrape Pitcher Leaderboards from FanGraphs

  fg_pitcher_leaders(x = 2015, y = 2015, qual = 150)

Scrape FanGraphs.com Guts!

  fg_guts()

Scrape Park Factors from FanGraphs.com

  fg_park(2013)

Scrape Park Factors by handedness from FanGraphs.com

  fg_park_hand(2013)