load_mbb_pbp {hoopR}R Documentation

Load hoopR men's college basketball play-by-play

Description

helper that loads multiple seasons from the data repo either into memory or writes it into a db using some forwarded arguments in the dots

Usage

load_mbb_pbp(
  seasons = most_recent_mbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit years associated with given men's college basketball seasons. (Min: 2006)

...

Additional arguments passed to an underlying function that writes the season data into a database (used by update_mbb_db()).

dbConnection

A DBIConnection object, as returned by

tablename

The name of the play by play data table within the database

Value

Returns a tibble

col_name types
id numeric
sequence_number character
type_id character
type_text character
text character
away_score integer
home_score integer
period_number integer
period_display_value character
clock_display_value character
scoring_play logical
score_value integer
team_id character
participants_0_athlete_id character
wallclock character
shooting_play logical
participants_1_athlete_id character
season integer
season_type integer
away_team_id integer
away_team_name character
away_team_mascot character
away_team_abbrev character
away_team_name_alt character
home_team_id integer
home_team_name character
home_team_mascot character
home_team_abbrev character
home_team_name_alt character
home_team_spread numeric
game_spread numeric
home_favorite logical
game_spread_available logical
game_id integer
qtr integer
time character
clock_minutes character
clock_seconds character
half character
game_half character
lag_qtr numeric
lead_qtr numeric
lag_game_half character
lead_game_half character
start_quarter_seconds_remaining integer
start_half_seconds_remaining integer
start_game_seconds_remaining integer
game_play_number integer
end_quarter_seconds_remaining numeric
end_half_seconds_remaining numeric
end_game_seconds_remaining numeric
period integer
coordinate_x integer
coordinate_y integer
media_id character

See Also

Other hoopR Loader Functions: load_mbb_player_box(), load_mbb_schedule(), load_mbb_team_box(), load_nba_pbp(), load_nba_player_box(), load_nba_schedule(), load_nba_team_box()

Examples


load_mbb_pbp(seasons = most_recent_mbb_season())


[Package hoopR version 2.1.0 Index]