View source: R/fg_milb_batter_game_logs.R
| fg_milb_batter_game_logs | R Documentation |
This function allows you to scrape MiLB game logs for individual batters from FanGraphs.
fg_milb_batter_game_logs(playerid, year)
playerid |
The batter's minor league ID from FanGraphs. |
year |
The season for which game logs should be returned. |
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 |
try(fg_milb_batter_game_logs(playerid = "sa3019999", year=2023))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.