Get NCAA Baseball Game Logs
Arguments
- player_id
A player's unique id. Can be found using the get_ncaa_baseball_roster function.
- year
The year of interest.
- type
The kind of statistics you want to return. Current options are 'batting' or 'pitching'.
- span
The span of time; can either be 'game' for game logs in a season, or 'career' which returns seasonal stats for a player's career.
Value
A data frame containing player and school information as well as game by game statistics
col_name | types |
player_id | numeric |
player_name | character |
Date | character |
Opponent | character |
Result | character |
App | numeric |
G | numeric |
GS | numeric |
IP | numeric |
CG | numeric |
H | numeric |
R | numeric |
ER | numeric |
BB | numeric |
SO | numeric |
SHO | numeric |
BF | numeric |
P-OAB | numeric |
2B-A | numeric |
3B-A | numeric |
Bk | numeric |
HR-A | numeric |
WP | numeric |
HB | numeric |
IBB | numeric |
Inh Run | numeric |
Inh Run Score | numeric |
SHA | numeric |
SFA | numeric |
Pitches | numeric |
GO | numeric |
FO | numeric |
W | numeric |
L | numeric |
SV | numeric |
OrdAppeared | numeric |
KL | numeric |
pickoffs | character |
Examples
# \donttest{
try(ncaa_game_logs(player_id = 2113782, year = 2021, type = "pitching", span = "game"))
#> ── NCAA Baseball Game Logs data from stats.ncaa.org ────────────────────
#> ℹ Data updated: 2022-04-30 07:16:57 UTC
#> # A tibble: 44 × 38
#> player_id player_name Date Opponent Result App G GS IP
#> <dbl> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 2113782 Davitt, Dunc… 03/0… Michiga… L 2 -… NA NA NA NA
#> 2 2113782 Davitt, Dunc… 03/0… Michiga… W 8 -… NA NA NA NA
#> 3 2113782 Davitt, Dunc… 03/0… Michiga… L 0 -… NA NA NA NA
#> 4 2113782 Davitt, Dunc… 03/0… Michiga… L 4 -… 1 1 1 3.1
#> 5 2113782 Davitt, Dunc… 03/1… Ohio St… W 4 -… NA NA NA NA
#> 6 2113782 Davitt, Dunc… 03/1… Ohio St… L 4 -… NA NA NA NA
#> 7 2113782 Davitt, Dunc… 03/1… Nebrask… L 0 -… NA NA NA NA
#> 8 2113782 Davitt, Dunc… 03/1… Nebrask… W 3 -… 1 1 1 6
#> 9 2113782 Davitt, Dunc… 03/1… Nebraska W 3 -… NA NA NA NA
#> 10 2113782 Davitt, Dunc… 03/2… Nebraska L 8 -… NA NA NA NA
#> # … with 34 more rows, and 29 more variables: CG <dbl>, H <dbl>,
#> # R <dbl>, ER <dbl>, BB <dbl>, SO <dbl>, SHO <dbl>, BF <dbl>,
#> # `P-OAB` <dbl>, `2B-A` <dbl>, `3B-A` <dbl>, Bk <dbl>, `HR-A` <dbl>,
#> # WP <dbl>, HB <dbl>, IBB <dbl>, `Inh Run` <dbl>,
#> # `Inh Run Score` <dbl>, SHA <dbl>, SFA <dbl>, Pitches <dbl>,
#> # GO <dbl>, FO <dbl>, W <dbl>, L <dbl>, SV <dbl>, OrdAppeared <dbl>,
#> # KL <dbl>, pickoffs <chr>
try(ncaa_game_logs(player_id = 1879650, year = 2019, type = "batting", span = "career"))
#> ── NCAA Baseball Game Logs data from stats.ncaa.org ────────────────────
#> ℹ Data updated: 2022-04-30 07:17:00 UTC
#> # A tibble: 4 × 27
#> Year player_id player_name Team GP BA G OBPct SlgPct R
#> <chr> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 2016… 1879650 Fellows, D… Vand… 18 "" 18 "" "" ""
#> 2 2017… 1879650 Fellows, D… Vand… 21 "" 21 "" "" ""
#> 3 2018… 1879650 Fellows, D… Vand… 28 "" 28 "" "" ""
#> 4 Tota… 1879650 Fellows, D… Tota… 67 "" 67 "" "" ""
#> # … with 17 more variables: AB <chr>, H <chr>, `2B` <chr>, `3B` <chr>,
#> # TB <chr>, HR <chr>, RBI <chr>, BB <chr>, HBP <chr>, SF <chr>,
#> # SH <chr>, K <chr>, DP <chr>, CS <chr>, Picked <chr>, SB <chr>,
#> # RBI2out <chr>
# }