Find MLB Player Game Stats
Arguments
- person_id
MLBAMIDs for player of interest.
- game_pk
The game_pk to return game_log statistics for a specific player in a specific game and to complete the call.
Value
Returns a tibble with the following columns:
col_name | types |
type | character |
group | character |
assists | integer |
put_outs | integer |
errors | integer |
chances | integer |
fielding | character |
caught_stealing | integer |
passed_ball | integer |
stolen_bases | integer |
stolen_base_percentage | character |
pickoffs | integer |
games_played | integer |
games_started | integer |
fly_outs | integer |
ground_outs | integer |
air_outs | integer |
runs | integer |
doubles | integer |
triples | integer |
home_runs | integer |
strike_outs | integer |
base_on_balls | integer |
intentional_walks | integer |
hits | integer |
hit_by_pitch | integer |
at_bats | integer |
number_of_pitches | integer |
innings_pitched | character |
wins | integer |
losses | integer |
saves | integer |
save_opportunities | integer |
holds | integer |
blown_saves | integer |
earned_runs | integer |
batters_faced | integer |
outs | integer |
games_pitched | integer |
complete_games | integer |
shutouts | integer |
pitches_thrown | integer |
balls | integer |
strikes | integer |
strike_percentage | character |
hit_batsmen | integer |
balks | integer |
wild_pitches | integer |
rbi | integer |
games_finished | integer |
runs_scored_per9 | character |
home_runs_per9 | character |
inherited_runners | integer |
inherited_runners_scored | integer |
catchers_interference | integer |
sac_bunts | integer |
sac_flies | integer |
ground_into_double_play | integer |
ground_into_triple_play | integer |
plate_appearances | integer |
total_bases | integer |
left_on_base | integer |
at_bats_per_home_run | character |
game_type | character |
num_teams | integer |
avg | character |
obp | character |
slg | character |
ops | character |
outs_pitched | integer |
whip | character |
ground_outs_to_airouts | character |
pitches_per_inning | character |
strikeout_walk_ratio | character |
strikeouts_per9inn | character |
walks_per9inn | character |
hits_per9inn | character |
team_id | integer |
team_name | character |
team_link | character |
opponent_id | integer |
opponent_name | character |
opponent_link | character |
pitcher_id | integer |
pitcher_full_name | character |
pitcher_link | character |
pitcher_first_name | character |
pitcher_last_name | character |
batter_id | integer |
batter_full_name | character |
batter_link | character |
batter_first_name | character |
batter_last_name | character |
total_splits | integer |
type_display_name | character |
group_display_name | character |
player_id | numeric |
game_pk | numeric |
Examples
# \donttest{
try(mlb_player_game_stats(person_id = 605151, game_pk = 531368))
#> ── MLB Player Game Stats data from MLB.com ────────── baseballr 1.6.0 ──
#> ℹ Data updated: 2024-04-13 21:56:37 UTC
#> # A tibble: 3 × 69
#> type group caught_stealing stolen_bases stolen_base_percentage
#> <chr> <chr> <int> <int> <chr>
#> 1 gameLog fielding 0 0 .---
#> 2 gameLog pitching 0 0 .---
#> 3 gameLog hitting 0 0 .---
#> # ℹ 64 more variables: assists <int>, put_outs <int>, errors <int>,
#> # chances <int>, fielding <chr>, passed_ball <int>, pickoffs <int>,
#> # summary <chr>, games_played <int>, games_started <int>,
#> # fly_outs <int>, ground_outs <int>, air_outs <int>, runs <int>,
#> # doubles <int>, triples <int>, home_runs <int>, strike_outs <int>,
#> # base_on_balls <int>, intentional_walks <int>, hits <int>,
#> # hit_by_pitch <int>, at_bats <int>, number_of_pitches <int>, …
# }