Learn R Programming

baseballr (version 1.5.0)

fg_milb_pitcher_game_logs: Scrape MiLB game logs for pitchers from FanGraphs

Description

This function allows you to scrape MiLB game logs for individual batters from FanGraphs.com.

Usage

fg_milb_pitcher_game_logs(playerid, year)

Value

Returns a tibble of Minor League pitcher game logs.

col_nametypes
player_namecharacter
minor_playeridcharacter
Datecharacter
Teamcharacter
Levelcharacter
Oppcharacter
Wnumeric
Lnumeric
ERAnumeric
Gnumeric
GSnumeric
CGnumeric
ShOnumeric
SVnumeric
IPnumeric
TBFnumeric
Hnumeric
Rnumeric
ERnumeric
HRnumeric
BBnumeric
IBBnumeric
HBPnumeric
WPnumeric
BKnumeric
SOnumeric
K/9numeric
BB/9numeric
K/BBnumeric
HR/9numeric
K%numeric
K-BB%numeric
BB%numeric
AVGnumeric
WHIPnumeric
BABIPnumeric
LOB%numeric
FIPnumeric
gamedatecharacter
dhinteger
UPIdcharacter
MLBAMIdcharacter
MinorMasterIdcharacter
RRIdcharacter
FirstNamecharacter
LastNamecharacter
firstLastNamecharacter
Heightcharacter
Weightcharacter
BirthDatecharacter
Batscharacter
Throwscharacter
Positioncharacter
BirthCitycharacter
Collegecharacter
Agecharacter

Arguments

playerid

The pitcher's minor league ID from FanGraphs.com.

year

The season for which game logs should be returned.

Examples

Run this code
# \donttest{
  fg_milb_pitcher_game_logs(playerid = "sa3005315", year=2021)
# }

Run the code above in your browser using DataLab