Skip to contents

cfbfastR Data

Full Seasons PBP Data

Functions exported by cfbfastR which load full seasons of cfbfastR data

load_cfb_pbp()
Load cleaned play-by-play from the data repo
load_cfb_rosters()
Load College Football Rosters
load_cfb_schedules()
Load CFB Game/Schedule Data from data repo
load_cfb_teams()
Load CFB team info from the data repo

Update or Create Database

Functions exported by cfbfastR which update and create a database of cfbfastR play-by-play data

update_cfb_db()
Update or create a cfbfastR play-by-play database

Play-by-Play Data

Functions exported by cfbfastR which return Expected Points and Win Probability model outputs.

cfbd_pbp_data()
Get college football play by play data with cfbfastR expected points/win probability added

College Football Data API and ESPN Functions

College Football Data API Key

Functions for using your API key.

cfbd_key() has_cfbd_key()
CFBD API Key Registration

Games Data

Functions exported by cfbfastR sourced from games endpoint of the CollegeFootballData API

cfbd_games
CFBD Games Endpoint Overview
cfbd_game_box_advanced()
Get game advanced box score information.
cfbd_game_info()
Get results information from games.
cfbd_game_media()
Get game media information (TV, radio, etc).
cfbd_game_player_stats()
Get player statistics by game
cfbd_game_records()
Get team records by year
cfbd_game_team_stats()
Get team statistics by game
cfbd_game_weather()
Get weather from games.
cfbd_calendar()
Get calendar of weeks by season.

Drives Data

Functions exported by cfbfastR sourced from drives endpoint of the CollegeFootballData API

cfbd_drives()
CFBD Drives Endpoint

Plays Data

Functions exported by cfbfastR sourced from plays endpoint of the CollegeFootballData API

cfbd_play
CFBD Plays Endpoint Overview
cfbd_plays()
Get college football play-by-play data.
cfbd_play_stats_player()
Gets player info associated by play
cfbd_play_stats_types()
Get college football mapping for play stats types
cfbd_play_types()
Get college football mapping for play types

Teams Data

Functions exported by cfbfastR sourced from the teams endpoint of the CollegeFootballData API

cfbd_teams
CFBD Teams Endpoint Overview
cfbd_team_info()
Team info lookup
cfbd_team_matchup()
Get matchup history between two teams.
cfbd_team_matchup_records()
Get matchup history records between two teams.
cfbd_team_roster()
Get team rosters
cfbd_team_talent()
Get composite team talent rankings for all teams in a given year

Players Data

Functions exported by cfbfastR sourced from the players endpoint of the CollegeFootballData API

cfbd_players
CFBD Players Endpoint Overview
cfbd_player_info()
Player information lookup
cfbd_player_returning()
Get player returning production
cfbd_player_usage()
Get player usage metrics

Stats Data

Functions exported by cfbfastR sourced from the conferences endpoint of the CollegeFootballData API

cfbd_stats
CFBD Stats Endpoint Overview
cfbd_stats_categories()
Get stats categories
cfbd_stats_game_advanced()
Get game advanced stats
cfbd_stats_season_advanced()
Get season advanced statistics by team
cfbd_stats_season_player()
Get season statistics by player
cfbd_stats_season_team()
Get season statistics by team

Rankings and Ratings Data

Functions exported by cfbfastR sourced from the rankings and ratings endpoints of the CollegeFootballData API and ESPN

cfbd_ratings
CFBD Ratings and Rankings Endpoints Overview
cfbd_ratings_elo()
Get Elo historical rating data
cfbd_ratings_sp()
Get SP historical rating data
cfbd_ratings_sp_conference()
Get conference level SP historical rating data
cfbd_ratings_srs()
Get SRS historical rating data
cfbd_rankings()
Get historical Coaches and AP poll data
espn_ratings_fpi()
ESPN FPI Ratings

NFL Draft Data

Functions exported by cfbfastR sourced from the draft endpoints of the CollegeFootballData API

cfbd_draft
CFBD NFL Draft Endpoint Overview
cfbd_draft_picks()
Get list of NFL draft picks
cfbd_draft_positions()
Get list of NFL positions
cfbd_draft_teams()
Get list of NFL teams

Betting Data

Functions exported by cfbfastR sourced from lines endpoint of the CollegeFootballData API

cfbd_betting_lines()
CFBD Betting Lines Endpoint Overview

Metrics Data

Functions exported by cfbfastR sourced from the Predicted Points Added (PPA) endpoints of the CollegeFootballData API and ESPN

cfbd_metrics
CFBD Metrics Endpoint Overview
cfbd_metrics_ppa_games()
Get team game averages for predicted points added (PPA)
cfbd_metrics_ppa_players_games()
Get player game averages for predicted points added (PPA)
cfbd_metrics_ppa_players_season()
Get player season averages for predicted points added (PPA)
cfbd_metrics_ppa_predicted()
Calculate predicted points using down and distance
cfbd_metrics_ppa_teams()
Get team averages for predicted points added (PPA)
cfbd_metrics_wp()
Get win probability chart data from API
cfbd_metrics_wp_pregame()
Get pre-game win probability data from API

Recruiting Data

Functions exported by cfbfastR sourced from the rankings and ratings endpoints of the CollegeFootballData API

cfbd_recruiting
CFB Recruiting Endpoint Overview
cfbd_recruiting_player()
Get player recruiting rankings
cfbd_recruiting_position()
Get college football position group recruiting information.
cfbd_recruiting_team()
Get college football recruiting team rankings information.
cfbd_recruiting_transfer_portal()
Get Transfer Portal Data

Schools Data

Functions exported by cfbfastR sourced from venues, conferences, and coaches endpoints of the CollegeFootballData API

cfbd_venues()
CFBD Venues Endpoint Overview
cfbd_conferences()
CFBD Conferences Endpoint Overview
cfbd_coaches()
CFBD Coaches Endpoint Overview

ESPN Data

Functions with ESPN connections

Functions exported by cfbfastR which allow access to ESPN data

espn_cfb_calendar()
ESPN Calendar
espn_cfb_pbp()
Get ESPN college football PBP data
espn_cfb_scoreboard() espn_cfb_schedule()
ESPN Scoreboard
espn_cfb_team_stats()
Get ESPN college football team stats data
espn_metrics_wp()
ESPN Metrics
espn_ratings_fpi()
ESPN FPI Ratings

Helper Functions and Data

Included data

Data included within the package

cfbd_play_type_df cfbd_conf_types_df
Data in the package for reference

Model functions and PBP helpers

Model functions and play-by-play helpers

cfbfastR Helper Functions

Internal functions used by cfbfastR

csv_from_url()
Load .csv / .csv.gz file from a remote connection
rds_from_url()
Load .rds file from a remote connection