Learn R Programming

baseballr (version 1.5.0)

mlb_team_leaders: MLB Team Leaders

Description

MLB Team Leaders

Usage

mlb_team_leaders(
  team_id = NULL,
  leader_categories = NULL,
  leader_game_types = NULL,
  season = NULL,
  limit = 1000
)

Value

Returns a tibble with the following columns

col_nametypes
leader_categorycharacter
rankinteger
valuecharacter
seasoncharacter
team_idinteger
team_namecharacter
team_linkcharacter
league_idinteger
league_namecharacter
league_linkcharacter
person_idinteger
person_full_namecharacter
person_linkcharacter
person_first_namecharacter
person_last_namecharacter
sport_idinteger
sport_linkcharacter
sport_abbreviationcharacter
stat_groupcharacter
total_splitsinteger
game_type_idcharacter
game_type_descriptioncharacter

Arguments

team_id

Team ID to return team leader information for.

leader_categories

Team leader category to return information and ranking for a particular statistic.

leader_game_types

Game type to return information and ranking for a particular statistic in a particular game type.

season

Season to return team leader information for.

limit

A limit to limit return to a particular number of records.

Examples

Run this code
# \donttest{
  try(mlb_team_leaders(team_id = 137, leader_categories = "homeRuns", season = 2021))
# }

Run the code above in your browser using DataLab