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))
#> c("type", "group", "assists", "put_outs", "errors", "chances", "fielding", "caught_stealing", "passed_ball", "stolen_bases", "stolen_base_percentage", "pickoffs", "games_played", "games_started", "fly_outs", "ground_outs", "air_outs", "runs", "double ...
#> 1 gameLog
#> 2 gameLog
#> 3 gameLog
#> 4 <NA>
#> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 1 fielding 0 0 0 0 .000 0 0 0 .--- 0 NA NA NA NA NA NA NA NA NA
#> 2 pitching NA NA NA NA <NA> 0 NA 0 .--- 0 1 0 1 2 1 0 0 0 0
#> 3 hitting NA NA NA NA <NA> 0 NA 0 .--- 0 1 NA 0 0 NA 0 0 0 0
#> 4 <NA> NA NA NA NA <NA> NA NA NA <NA> NA 1 NA NA 1 0 NA 0 0 0
#> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 1 NA NA NA NA NA NA NA <NA> NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 2 0 0 0 0 0 3 8 1.0 0 0 0 0 0 0 0 3 3 1 0 0 8 2
#> 3 0 0 0 0 0 0 NA <NA> NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 4 0 0 0 0 0 1 2 0.1 NA NA NA NA NA NA NA 1 1 1 NA NA NA 0
#> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 1 NA <NA> NA NA NA NA NA <NA> <NA> NA NA NA NA NA NA NA NA NA NA <NA>
#> 2 6 .750 0 0 0 0 0 0.00 0.00 0 0 0 0 0 NA NA NA NA NA <NA>
#> 3 NA <NA> NA NA NA 0 NA <NA> <NA> NA NA 0 0 0 0 0 0 0 0 -.--
#> 4 2 1.000 0 0 0 0 NA <NA> 0.00 NA NA 0 0 0 0 NA NA 0 NA <NA>
#> NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA
#> 1 <NA> NA <NA> <NA> <NA> <NA> NA <NA> <NA> <NA> <NA> <NA> <NA> <NA> NA
#> 2 <NA> NA <NA> <NA> <NA> <NA> NA <NA> <NA> <NA> <NA> <NA> <NA> <NA> NA
#> 3 <NA> NA <NA> <NA> <NA> <NA> NA <NA> <NA> <NA> <NA> <NA> <NA> <NA> NA
#> 4 R 1 .000 .000 .000 .000 1 0.00 1.00 6.00 -.-- 0.00 0.00 0.00 109
#> NA NA NA NA
#> 1 <NA> <NA> NA <NA>
#> 2 <NA> <NA> NA <NA>
#> 3 <NA> <NA> NA <NA>
#> 4 Arizona Diamondbacks /api/v1/teams/109 136 Seattle Mariners
#> NA NA NA NA NA
#> 1 <NA> NA <NA> <NA> <NA>
#> 2 <NA> NA <NA> <NA> <NA>
#> 3 <NA> NA <NA> <NA> <NA>
#> 4 /api/v1/teams/136 605151 Archie Bradley /api/v1/people/605151 Archie
#> NA NA NA NA NA NA NA
#> 1 <NA> NA <NA> <NA> <NA> <NA> NA
#> 2 <NA> NA <NA> <NA> <NA> <NA> NA
#> 3 <NA> NA <NA> <NA> <NA> <NA> NA
#> 4 Bradley 429664 Robinson Cano /api/v1/people/429664 Robinson Cano 1
#> NA NA NA NA
#> 1 <NA> <NA> 605151 531368
#> 2 <NA> <NA> 605151 531368
#> 3 <NA> <NA> 605151 531368
#> 4 vsPlayer5Y pitching 605151 531368
# }