fg_milb_batter_game_logs {baseballr}R Documentation

Scrape MiLB game logs for batters from FanGraphs

Description

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

Usage

fg_milb_batter_game_logs(playerid, year)

Arguments

playerid

The batter's minor league ID from FanGraphs.

year

The season for which game logs should be returned.

Value

Returns a tibble of Minor League batter game logs with the following columns:

col_name types
player_name character
minor_playerid character
Date character
Team character
Level character
Opp character
G numeric
AB numeric
PA numeric
H numeric
1B numeric
2B numeric
3B numeric
HR numeric
R numeric
RBI numeric
BB numeric
IBB numeric
SO numeric
HBP numeric
SF numeric
SH numeric
GDP numeric
SB numeric
CS numeric
AVG numeric
BB% numeric
K% numeric
BB/K numeric
OBP numeric
SLG numeric
OPS numeric
ISO numeric
Spd numeric
BABIP numeric
wRC numeric
wRAA numeric
wOBA numeric
wRC+ numeric
wBsR numeric
gamedate character
dh integer
UPId character
MLBAMId character
MinorMasterId character
RRId character
FirstName character
LastName character
firstLastName character
Height character
Weight character
BirthDate character
Bats character
Throws character
Position character
BirthCity character
College character
Age character

Examples


  try(fg_milb_batter_game_logs(playerid = "sa3019999", year=2023))


[Package baseballr version 1.6.0 Index]