Package: cfbfastR 2.3.0

Saiem Gilani

cfbfastR: Access College Football Play by Play Data

A utility to quickly obtain clean and tidy college football data. Serves as a wrapper around the <https://collegefootballdata.com/> API and provides functions to access live play by play and box score data from ESPN <https://www.espn.com> when available. It provides users the capability to access a plethora of endpoints, and supplement that data with additional information (Expected Points Added/Win Probability added).

Authors:Saiem Gilani [cre, aut], Akshay Easwaran [aut], Jared Lee [aut], Eric Hess [aut], Michael Egle [ctb], Nate Manzo [ctb], Jason DeLoach [ctb], Tej Seth [ctb], Conor McQuiston [ctb], Tan Ho [ctb], Keegan Abdoo [ctb], Matt Spencer [ctb], Sebastian Carl [ctb], John Edwards [ctb], Brad Hill [ctb]

cfbfastR_2.3.0.tar.gz
cfbfastR_2.3.0.zip(r-4.7)cfbfastR_2.3.0.zip(r-4.6)cfbfastR_2.3.0.zip(r-4.5)
cfbfastR_2.3.0.tgz(r-4.6-any)cfbfastR_2.3.0.tgz(r-4.5-any)
cfbfastR_2.3.0.tar.gz(r-4.7-any)cfbfastR_2.3.0.tar.gz(r-4.6-any)
cfbfastR_2.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
cfbfastR/json (API)
NEWS

# Install 'cfbfastR' in R:
install.packages('cfbfastR', repos = c('https://sportsdataverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sportsdataverse/cfbfastr/issues

Pkgdown/docs site:https://cfbfastr.sportsdataverse.org

Datasets:

On CRAN:

Conda:

cfb-datacollege-footballcollege-football-playerscollegefootballdata-apiespnfootballfootball-apifootball-datafootball-scoresfootballdatancaafsportssports-analyticssports-bettingsports-datasports-statssportsanalyticssportsdataverse

8.07 score 98 stars 265 scripts 701 downloads 171 exports 40 dependencies

Last updated from:f2277a545f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK218
source / vignettesOK233
linux-release-x86_64OK235
macos-release-arm64OK187
macos-oldrel-arm64OK126
windows-develOK180
windows-releaseOK170
windows-oldrelOK168
wasm-releaseOK145

Exports:add_play_countsadd_player_colsadd_yardagecfbd_api_key_infocfbd_betting_atscfbd_betting_linescfbd_calendarcfbd_coachescfbd_conferencescfbd_draft_pickscfbd_draft_positionscfbd_draft_teamscfbd_drivescfbd_game_box_advancedcfbd_game_infocfbd_game_mediacfbd_game_player_statscfbd_game_recordscfbd_game_team_statscfbd_game_weathercfbd_keycfbd_live_playscfbd_live_scoreboardcfbd_metrics_fg_epcfbd_metrics_ppa_gamescfbd_metrics_ppa_players_gamescfbd_metrics_ppa_players_seasoncfbd_metrics_ppa_predictedcfbd_metrics_ppa_teamscfbd_metrics_wepa_players_kickingcfbd_metrics_wepa_players_passingcfbd_metrics_wepa_players_rushingcfbd_metrics_wepa_team_seasoncfbd_metrics_wpcfbd_metrics_wp_pregamecfbd_pbp_datacfbd_pbp_data_v2cfbd_play_stats_playercfbd_play_stats_typescfbd_play_typescfbd_player_infocfbd_player_returningcfbd_player_usagecfbd_playscfbd_rankingscfbd_ratings_elocfbd_ratings_fpicfbd_ratings_spcfbd_ratings_sp_conferencecfbd_ratings_srscfbd_recruiting_playercfbd_recruiting_positioncfbd_recruiting_teamcfbd_recruiting_transfer_portalcfbd_stats_categoriescfbd_stats_game_advancedcfbd_stats_game_havoccfbd_stats_season_advancedcfbd_stats_season_playercfbd_stats_season_teamcfbd_team_infocfbd_team_matchupcfbd_team_matchup_recordscfbd_team_rostercfbd_team_talentcfbd_venuesclean_drive_datclean_drive_infoclean_pbp_datclean_play_textcreate_epacreate_wpa_naiveepa_fg_probsespn_cfb_awardespn_cfb_awardsespn_cfb_calendarespn_cfb_clear_cacheespn_cfb_coachespn_cfb_coach_recordespn_cfb_coachesespn_cfb_franchiseespn_cfb_franchisesespn_cfb_futuresespn_cfb_game_broadcastsespn_cfb_game_drive_playsespn_cfb_game_drivesespn_cfb_game_leadersespn_cfb_game_oddsespn_cfb_game_pbpespn_cfb_game_playespn_cfb_game_player_boxespn_cfb_game_player_statisticsespn_cfb_game_powerindexespn_cfb_game_predictorespn_cfb_game_probabilitiesespn_cfb_game_situationespn_cfb_game_statusespn_cfb_game_team_leadersespn_cfb_game_team_linescoresespn_cfb_game_team_recordsespn_cfb_game_team_rosterespn_cfb_game_team_statisticsespn_cfb_game_teamsespn_cfb_groupsespn_cfb_pbpespn_cfb_pbp_v2espn_cfb_playerespn_cfb_player_career_statsespn_cfb_player_eventlogespn_cfb_player_gamelogespn_cfb_player_overviewespn_cfb_player_seasonsespn_cfb_player_splitsespn_cfb_player_statsespn_cfb_player_stats_v3espn_cfb_playersespn_cfb_positionespn_cfb_positionsespn_cfb_powerindexespn_cfb_qbrespn_cfb_rankingsespn_cfb_recruitsespn_cfb_scheduleespn_cfb_scoreboardespn_cfb_season_infoespn_cfb_season_typesespn_cfb_season_weeksespn_cfb_seasonsespn_cfb_standingsespn_cfb_teamespn_cfb_team_atsespn_cfb_team_awardsespn_cfb_team_coachesespn_cfb_team_eventsespn_cfb_team_leadersespn_cfb_team_powerindexespn_cfb_team_ranksespn_cfb_team_recordespn_cfb_team_rosterespn_cfb_team_scheduleespn_cfb_team_statsespn_cfb_teamsespn_cfb_unnest_playsespn_cfb_venueespn_cfb_venuesespn_cfb_week_rankingsespn_metrics_wpespn_ratings_fpifox_cfb_boxscorefox_cfb_league_leadersfox_cfb_oddsfox_cfb_pbpfox_cfb_standingsfox_cfb_team_gamelogfox_cfb_team_rosterfox_cfb_team_statshas_cfbd_keyload_cfb_pbpload_cfb_rostersload_cfb_schedulesload_cfb_teamspenalty_detectionprep_epa_df_afterupdate_cfb_dbwpa_calcs_naiveyahoo_cfb_boxscoreyahoo_cfb_player_season_statsyahoo_cfb_player_season_stats_legacyyahoo_cfb_scoreboardyahoo_cfb_team_season_statsyahoo_cfb_team_season_stats_legacy

Dependencies:askpassclicpp11curldata.tabledplyrgenericsgluehmshttr2janitorjsonlitelatticelifecyclelubridatemagrittrMatrixmgcvnlmennetopensslpillarpkgconfigpurrrR6rappdirsRcppRcppParallelrlangsnakecasestringistringrsystibbletidyrtidyselecttimechangeutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
*CFBD API Key Endpoint Overview*api_key cfbd_api_key
*CFBD Betting Endpoint Overview*betting cfbd_betting lines spreads
*CFBD Against-the-Spread (ATS) Records*cfbd_betting_ats
*CFBD Betting Lines Endpoint Overview*cfbd_betting_lines
*Get calendar of weeks by season.*cfbd_calendar
*CFBD Coaches Endpoint Overview*cfbd_coaches
*CFBD Conferences Endpoint Overview*cfbd_conferences conferences
*CFBD NFL Draft Endpoint Overview*cfbd_draft draft nfl nfl_draft nfl_teams
*Get list of NFL draft picks*cfbd_draft_picks
*Get list of NFL positions*cfbd_draft_positions
*Get list of NFL teams*cfbd_draft_teams
*CFBD Drives Endpoint Overview*cfbd_drives
*Get game advanced box score information.*cfbd_game_box_advanced
*Get results information from games.*cfbd_game_info
*Get game media information (TV, radio, etc).*cfbd_game_media
*Get player statistics by game*cfbd_game_player_stats
*Get team records by year*cfbd_game_records
*Get team statistics by game*cfbd_game_team_stats
*Get weather from games.*cfbd_game_weather
*CFBD Games Endpoint Overview*cfbd_games
*Get live college football play-by-play data.*cfbd_live_plays
*Get live game scoreboard information from games.*cfbd_live_scoreboard
*CFBD Metrics Endpoint Overview*cfbd_metrics
*Get FG expected points from CFBD API*cfbd_metrics_fg_ep
*Get team game averages for predicted points added (PPA)*cfbd_metrics_ppa_games
*Get player game averages for predicted points added (PPA)*cfbd_metrics_ppa_players_games
*Get player season averages for predicted points added (PPA)*cfbd_metrics_ppa_players_season
*Calculate predicted points using down and distance*cfbd_metrics_ppa_predicted
*Get team averages for predicted points added (PPA)*cfbd_metrics_ppa_teams
*Get Points Added Above Replacement (PAAR) ratings for kickers*cfbd_metrics_wepa_players_kicking
*Get opponent-adjusted player passing statistics for predicted points added (PPA)*cfbd_metrics_wepa_players_passing
*Get opponent-adjusted player rushing statistics for predicted points added (PPA)*cfbd_metrics_wepa_players_rushing
*Get opponent-adjusted team season statistics for predicted points added (PPA)*cfbd_metrics_wepa_team_season
*Get win probability chart data from API*cfbd_metrics_wp
*Get pre-game win probability data from API*cfbd_metrics_wp_pregame
*CFBD Play-by-Play Endpoint Overview*cfbd_pbp play_by_play
*Get college football play by play data with cfbfastR expected points/win probability added*cfbd_pbp_data
*Get college football play-by-play data — modular EPA/WPA pipeline (v2)*cfbd_pbp_data_v2
*CFBD Play-by-Play (v2 Modular EPA/WPA Pipeline) Overview*cfbd_pbp_v2 modular_epa modular_wpa pbp_v2
*CFBD Plays Endpoint Overview*cfbd_play
*Gets player info associated by play*cfbd_play_stats_player
*Get college football mapping for play stats types*cfbd_play_stats_types
*Get college football mapping for play types*cfbd_play_types
*Player information lookup*cfbd_player_info
*Get player returning production*cfbd_player_returning
*Get player usage metrics*cfbd_player_usage
*CFBD Players Endpoint Overview*cfbd_player cfbd_players
*Get college football play-by-play data.*cfbd_plays
*Get historical Coaches and AP poll data*cfbd_rankings
*CFBD Ratings and Rankings Endpoints Overview*cfbd_ratings
*Get Elo historical rating data*cfbd_ratings_elo
*Get Football Power Index (FPI) historical rating data*cfbd_ratings_fpi
*Get SP historical rating data*cfbd_ratings_sp
*Get conference level SP historical rating data*cfbd_ratings_sp_conference
*Get SRS historical rating data*cfbd_ratings_srs
*CFB Recruiting Endpoint Overview*cfbd_recruiting recruiting
*Get player recruiting rankings*cfbd_recruiting_player
*Get college football position group recruiting information.*cfbd_recruiting_position
*Get college football recruiting team rankings information.*cfbd_recruiting_team
*Get Transfer Portal Data*cfbd_recruiting_transfer_portal
*CFBD Stats Endpoint Overview*cfbd_stats
*Get stats categories*cfbd_stats_categories
*Get game advanced stats*cfbd_stats_game_advanced
*Get game havoc statistics*cfbd_stats_game_havoc
*Get season advanced statistics by team*cfbd_stats_season_advanced
*Get season statistics by player*cfbd_stats_season_player
*Get season statistics by team*cfbd_stats_season_team
*Team info lookup*cfbd_team_info
*Get matchup history between two teams.*cfbd_team_matchup
*Get matchup history records between two teams.*cfbd_team_matchup_records
*Get team rosters*cfbd_team_roster
*Get composite team talent rankings for all teams in a given year*cfbd_team_talent
*CFBD Teams Endpoint Overview*cfbd_teams
*CFBD Venues Endpoint Overview*cfbd_venues stadiums
*Load .csv / .csv.gz file from a remote connection*csv_from_url
*Data in the package for reference*cfbd_conf_types_df cfbd_play_type_df data
*ESPN College Football Award Detail*espn_cfb_award
*ESPN College Football Awards*espn_cfb_awards
ESPN Calendarespn_cfb_calendar
*ESPN College Football Catalog Endpoint Overview*awards catalog clear_cache espn_cfb_catalog franchises positions
*Clear the cfbfastR ESPN catalog cache*espn_cfb_clear_cache
*ESPN College Football Coach Detail*espn_cfb_coach
*ESPN College Football Coach Season Record*espn_cfb_coach_record
*ESPN College Football Coaches Index*espn_cfb_coaches
*ESPN College Football Franchise Detail*espn_cfb_franchise
*ESPN College Football Franchises Index*espn_cfb_franchises
*ESPN College Football Betting Futures (Long Format)*espn_cfb_futures
*ESPN College Football Game Endpoint Overview*espn_cfb_game game leaders plays
*ESPN College Football Game Broadcasts*espn_cfb_game_broadcasts
*ESPN College Football Game Drive Plays*espn_cfb_game_drive_plays
*ESPN College Football Game Drives*espn_cfb_game_drives
*ESPN College Football Game Leaders*espn_cfb_game_leaders
*ESPN College Football Game Odds*espn_cfb_game_odds
*ESPN College Football Game Plays (Core-v2 Play-by-Play)*espn_cfb_game_pbp
*ESPN College Football Game Play (Single Play Detail)*espn_cfb_game_play
*ESPN College Football Game Player Box Score*espn_cfb_game_player_box
*ESPN College Football Game Player Statistics (Single Athlete)*espn_cfb_game_player_statistics
*ESPN College Football Game Power Index (Matchup FPI)*espn_cfb_game_powerindex
*ESPN College Football Game Predictor (BPI Matchup Predictor)*espn_cfb_game_predictor
*ESPN College Football Game Win Probabilities*espn_cfb_game_probabilities
*ESPN College Football Game Situation*espn_cfb_game_situation
*ESPN College Football Game Status*espn_cfb_game_status
*ESPN College Football Game Team Leaders*espn_cfb_game_team_leaders
*ESPN College Football Game Team Linescores*espn_cfb_game_team_linescores
*ESPN College Football Game Team Records*espn_cfb_game_team_records
*ESPN College Football Game Team Roster*espn_cfb_game_team_roster
*ESPN College Football Game Team Statistics*espn_cfb_game_team_statistics
*ESPN College Football Game Teams*espn_cfb_game_teams
*ESPN College Football Groups & Conferences*espn_cfb_groups
Get ESPN college football PBP dataespn_cfb_pbp
*Get ESPN College Football Play-by-Play (core-v2)*espn_cfb_pbp_v2
*ESPN College Football Player Endpoint Overview*athletes espn_cfb_player player recruits
*ESPN College Football Player Season Statistics (Long Format)*espn_cfb_player_career_stats
*ESPN College Football Player Event Log*espn_cfb_player_eventlog
*ESPN College Football Player Game Log*espn_cfb_player_gamelog
*ESPN College Football Player Statistics Overview*espn_cfb_player_overview
*ESPN College Football Player Seasons*espn_cfb_player_seasons
*ESPN College Football Player Statistical Splits*espn_cfb_player_splits
*Get ESPN college football player stats data*espn_cfb_player_stats
*ESPN College Football Player Stats (web v3, all categories)*espn_cfb_player_stats_v3
*ESPN College Football Players Index*espn_cfb_players
*ESPN College Football Position Detail*espn_cfb_position
*ESPN College Football Positions Index*espn_cfb_positions
*ESPN College Football Power Index (Long Format)*espn_cfb_powerindex
*ESPN College Football Total Quarterback Rating (QBR)*espn_cfb_qbr
*ESPN College Football Ranking Sources*espn_cfb_rankings
*ESPN College Football Recruits*espn_cfb_recruits
*ESPN Scoreboard*espn_cfb_schedule espn_cfb_scoreboard
*ESPN College Football Season Endpoint Overview*espn_cfb_season rankings season seasons standings
*ESPN College Football Season Detail*espn_cfb_season_info
*ESPN College Football Season Types*espn_cfb_season_types
*ESPN College Football Season Weeks*espn_cfb_season_weeks
*ESPN College Football Seasons Index*espn_cfb_seasons
*ESPN College Football Standings (Long Format)*espn_cfb_standings
*ESPN College Football Team Endpoint Overview*espn_cfb_team team team_roster team_schedule
*ESPN College Football Team Against-the-Spread Records*espn_cfb_team_ats
*ESPN College Football Team Awards*espn_cfb_team_awards
*ESPN College Football Team Coaches*espn_cfb_team_coaches
*ESPN College Football Team Season Event Log*espn_cfb_team_events
*ESPN College Football Team Statistical Leaders*espn_cfb_team_leaders
*ESPN College Football Single-Team Power Index (Long Format)*espn_cfb_team_powerindex
*ESPN College Football Team Poll Rank History*espn_cfb_team_ranks
*ESPN College Football Team Record (Long Format)*espn_cfb_team_record
*ESPN College Football Team Roster (Season-Scoped)*espn_cfb_team_roster
*ESPN College Football Team Schedule*espn_cfb_team_schedule
*Get ESPN college football team stats data*espn_cfb_team_stats
*ESPN College Football Teams Index*espn_cfb_teams
*Unnest ESPN CFB drive plays into a flat play-by-play table*espn_cfb_unnest_plays
*ESPN College Football Venue Detail*espn_cfb_venue
*ESPN College Football Venues Index*espn_cfb_venues
*ESPN College Football Weekly Rankings*espn_cfb_week_rankings
*ESPN Metrics*espn_metrics espn_metrics_wp
*ESPN FPI Ratings*espn_ratings_fpi
*Get Fox Sports college football boxscore*fox_cfb_boxscore
*Get Fox Sports college football statistical leaders*fox_cfb_league_leaders
*Get Fox Sports college football game odds*fox_cfb_odds
*Get Fox Sports college football play-by-play*fox_cfb_pbp
*Get Fox Sports college football conference standings*fox_cfb_standings
*Get Fox Sports college football team game log*fox_cfb_team_gamelog
*Get Fox Sports college football team roster*fox_cfb_team_roster
*Get Fox Sports college football team stat leaders*fox_cfb_team_stats
*Load cleaned play-by-play from the data repo*load_cfb_pbp
Load College Football Rostersload_cfb_rosters
Load CFB Game/Schedule Data from data repoload_cfb_schedules
Load CFB team info from the data repoload_cfb_teams
Load .rds file from a remote connectionrds_from_url
*CFBD API Key Registration*cfbd_api_key_info cfbd_key has_cfbd_key register_cfbd
*Update or create a cfbfastR play-by-play database*update_cfb_db
*Get Yahoo Sports college football boxscore (SCAFFOLD)*yahoo_cfb_boxscore
*Get Yahoo Sports college football player season stats (modern)*yahoo_cfb_player_season_stats
*Get Yahoo Sports CFB legacy per-category player leaders*yahoo_cfb_player_season_stats_legacy
*Get Yahoo Sports college football scoreboard*yahoo_cfb_scoreboard
*Get Yahoo Sports college football team season stats (modern)*yahoo_cfb_team_season_stats
*Get Yahoo Sports CFB legacy per-category team stats*yahoo_cfb_team_season_stats_legacy