| mlb_high_low_stats {baseballr} | R Documentation |
Acquire high/low stats for Major and Minor Leagues
Description
Acquire high/low stats for Major and Minor Leagues
Usage
mlb_high_low_stats(
org_type,
season,
sort_stat,
team_ids = NULL,
league_ids = NULL,
sport_ids = NULL,
game_type = NULL,
stat_group = NULL,
limit = NULL
)
Arguments
org_type |
The organization type for return information (Required). Valid values include:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
season |
The season for which you want to return information (Required). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sort_stat |
The stat to sort the return (Required). Valid values can be found from 'stat_lookup_param' below
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
team_ids |
The team_id(s) for which to return information. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
league_ids |
The league_id(s) for which to return information. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
sport_ids |
The sport_id(s) for which to return information. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
game_type |
The game_type for which to return information. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stat_group |
Stat group for which to return information. Valid values include:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
limit |
Number of records as the limit of the return. |
Value
Returns a tibble with the following columns
| col_name | types |
| total_splits | integer |
| season | integer |
| date | character |
| is_home | logical |
| rank | integer |
| game_innings | integer |
| stat_at_bats | integer |
| team_id | integer |
| team_name | character |
| team_link | character |
| opponent_id | integer |
| opponent_name | character |
| opponent_link | character |
| game_pk | integer |
| game_link | character |
| game_number | integer |
| game_content_link | character |
| home_team_id | integer |
| home_team_name | character |
| home_team_link | character |
| away_team_id | integer |
| away_team_name | character |
| away_team_link | character |
| combined_stats | logical |
| group_display_name | character |
| game_type_id | character |
| game_type_description | character |
| sort_stat_name | character |
| sort_stat_lookup_param | character |
| sort_stat_is_counting | logical |
| sort_stat_label | character |
Examples
try(mlb_high_low_stats(org_type = 'Team', season = 2020, sort_stat = 'atBats'))
[Package baseballr version 1.6.0 Index]