Skip to contents

Find MLB Player Game Stats - Current Game

Usage

mlb_player_game_stats_current(person_id = NULL)

Arguments

person_id

MLBAMIDs for player of interest.

Value

Returns a tibble with the following columns:

col_nametypes
typecharacter
groupcharacter
stat_assistsinteger
stat_put_outsinteger
stat_errorsinteger
stat_chancesinteger
stat_fieldingcharacter
stat_caught_stealinginteger
stat_passed_ballinteger
stat_stolen_basesinteger
stat_stolen_base_percentagecharacter
stat_pickoffsinteger
stat_games_playedinteger
stat_games_startedinteger
stat_fly_outsinteger
stat_ground_outsinteger
stat_air_outsinteger
stat_runsinteger
stat_doublesinteger
stat_triplesinteger
stat_home_runsinteger
stat_strike_outsinteger
stat_base_on_ballsinteger
stat_intentional_walksinteger
stat_hitsinteger
stat_hit_by_pitchinteger
stat_at_batsinteger
stat_number_of_pitchesinteger
stat_innings_pitchedcharacter
stat_winsinteger
stat_lossesinteger
stat_savesinteger
stat_save_opportunitiesinteger
stat_holdsinteger
stat_blown_savesinteger
stat_earned_runsinteger
stat_batters_facedinteger
stat_outsinteger
stat_games_pitchedinteger
stat_complete_gamesinteger
stat_shutoutsinteger
stat_pitches_throwninteger
stat_ballsinteger
stat_strikesinteger
stat_strike_percentagecharacter
stat_hit_batsmeninteger
stat_balksinteger
stat_wild_pitchesinteger
stat_rbiinteger
stat_games_finishedinteger
stat_runs_scored_per9character
stat_home_runs_per9character
stat_inherited_runnersinteger
stat_inherited_runners_scoredinteger
stat_catchers_interferenceinteger
stat_sac_buntsinteger
stat_sac_fliesinteger
stat_ground_into_double_playinteger
stat_ground_into_triple_playinteger
stat_plate_appearancesinteger
stat_total_basesinteger
stat_left_on_baseinteger
stat_at_bats_per_home_runcharacter
game_typecharacter
num_teamsinteger
stat_avgcharacter
stat_obpcharacter
stat_slgcharacter
stat_opscharacter
stat_outs_pitchedinteger
stat_whipcharacter
stat_ground_outs_to_airoutscharacter
stat_pitches_per_inningcharacter
stat_strikeout_walk_ratiocharacter
stat_strikeouts_per9inncharacter
stat_walks_per9inncharacter
stat_hits_per9inncharacter
team_idinteger
team_namecharacter
team_linkcharacter
opponent_idinteger
opponent_namecharacter
opponent_linkcharacter
pitcher_idinteger
pitcher_full_namecharacter
pitcher_linkcharacter
pitcher_first_namecharacter
pitcher_last_namecharacter
batter_idinteger
batter_full_namecharacter
batter_linkcharacter
batter_first_namecharacter
batter_last_namecharacter
total_splitsinteger
type_display_namecharacter
group_display_namecharacter
player_idnumeric
game_pknumeric

Examples

# \donttest{
  try(mlb_player_game_stats_current(person_id = 660271))
#> ── MLB Player Game Stats - Current Game data from MLB.com ──────────────
#>  Data updated: 2024-04-13 21:56:38 UTC
#> # A tibble: 0 × 0
# }