View source: R/fg_milb_pitcher_game_logs.R
| fg_milb_pitcher_game_logs | R Documentation |
This function allows you to scrape MiLB game logs for individual batters from FanGraphs.com.
fg_milb_pitcher_game_logs(playerid, year)
playerid |
The pitcher's minor league ID from FanGraphs.com. |
year |
The season for which game logs should be returned. |
Returns a tibble of Minor League pitcher game logs.
| col_name | types |
| player_name | character |
| minor_playerid | character |
| Date | character |
| Team | character |
| Level | character |
| Opp | character |
| W | numeric |
| L | numeric |
| ERA | numeric |
| G | numeric |
| GS | numeric |
| CG | numeric |
| ShO | numeric |
| SV | numeric |
| IP | numeric |
| TBF | numeric |
| H | numeric |
| R | numeric |
| ER | numeric |
| HR | numeric |
| BB | numeric |
| IBB | numeric |
| HBP | numeric |
| WP | numeric |
| BK | numeric |
| SO | numeric |
| K/9 | numeric |
| BB/9 | numeric |
| K/BB | numeric |
| HR/9 | numeric |
| K% | numeric |
| K-BB% | numeric |
| BB% | numeric |
| AVG | numeric |
| WHIP | numeric |
| BABIP | numeric |
| LOB% | numeric |
| FIP | 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_pitcher_game_logs(playerid = "sa3020682", year=2023))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.