- fixed breaking bug related to
stringi
v1.8 update incfbd_play_pbp_data()
EPA and WPA processing - Minor documentation and test updates
- Improve date parsing for
espn_cfb_scoreboard()
andespn_cfb_schedule()
functions while addinglubridate
dependency - Made a minor tweak to the returns of the
espn_ratings_fpi()
function
- Add division parameter to the following functions:
espn_cfb_player_stats()
function added.
- Improved drive_pts logic in play-by-play data.
- Fixed an issue that occasionally made the
cfbd_game_team_stats()
function return data in a long format - Minor documentation and test updates
espn_cfb_calendar()
espn_cfb_schedule()
- Added EPA and WPA processing to
espn_cfb_pbp()
espn_cfb_team_stats()
- Removes
furrr
,future
dependencies, addsRcpp
,RcppParallel
, andpurrr
dependencies
- All functions now default to return tibbles.
- Added S3 method to print outputs with data info and retrieval timestamps. Thank you to Tan Ho (@tanho36) for the idea.
- Added
espn_ratings_fpi()
to exports.
- Fixed bug in
cfbd_game_team_stats()
with _allowed columns duplicating team stats instead of showing opponent stats. - Updated tests and documentation for
cfbd_game_team_stats()
.
- Updated function
cfbd_pbp_data()
to account for additional timeout cases (namely, kickoffs/extra point attempts).
- Updated tests and documentation for
cfbd_betting_lines()
- API call in
espn_ratings_fpi()
now requires headers in httr request
- Changed options to revert to old options on exit of function.
- Removed check_github functions.
- Switched package urls in DESCRIPTION again.
- Switched package urls in README and DESCRIPTION files to https://
- Removed source urls from many package documentation entries.
- Updated a test to skip on CRAN
- Added
cfbd_ratings_elo()
function - Fixed a bug in
update_cfb_db()
where the function failed when trying to load recent games from the data repo. (#35) - Added the option
cfbfastR.dbdirectory
that allows to set the database directory inupdate_cfb_db()
globally.
- Remove verbose parameter
- Removed calculated columns from
cfbd_stats_season_team()
that were not behaving correctly - Fixed bug where
only_fbs
input incfbd_team_info()
was ignored. It is now possible to get the team info for all the colleges in the API instead of only FBS schools. - Removed default year from
cfbd_metrics_ppa_teams
.cfbd_metrics_ppa_teams
andcfbd_metrics_ppa_players_season
now require one ofteam
oryear
to be specified
Added espn_cfb_scoreboard()
Added espn_cfb_pbp()
Added cfbd_game_weather()
Hotfix cfbd_game_player_stats()
Added ID linking to cfbd_recruiting_players()
Added three NFL draft functions:
cfbd_draft_teams()
- Get list of NFL teamscfbd_draft_positions()
- Get list of NFL positions for mapping to collegiatecfbd_draft_picks()
- Get list of NFL Draft picks
-
Added headshot_url to outputs of
cfbd_team_roster()
-
Renamed returns in
cfbd_game_box_advanced()
:rushing_line_yd_avg
to pluralrushing_line_yds_avg
rushing_second_lvl_yd_avg
to pluralrushing_second_lvl_yds_avg
rushing_open_field_yd_avg
to pluralrushing_open_field_yds_avg
-
Completed documentation for all returns except
cfbd_pbp_data()
-
Continued work on intro vignette
-
Added mini-vignettes pertaining to CFB Data functionality:
- Change
id
variable toteam_id
inespn_ratings_fpi()
- Changed
espn_game_id
variable togame_id
inespn_metrics_wp()
, corrected theaway_win_percentage
calculation and addedtie_percentage
to the returns. - Change
id
variable toathlete_id
incfbd_metrics_ppa_players_season()
- Added
load_cfb_pbp()
andupdate_cfb_db()
functions. Pretty much cherry-picking thenflfastR
methodology of loading data from thecfbfastR-data
repository.
- Added
furrr
,future
, andprogressr
dependencies to the package to allow for parallel processing of the play-by-play data with progress updates if desired.
-
All functions sourced from the College Football Data API will start with
cfbd_
as opposed tocfb_
(as in cfbscrapR). One additionalcfbd_
function has been added that corresponds to the result whencfbd_pbp_data()
has the parameterepa_wpa=FALSE
. It has now been separated into its own function for claritycfbd_plays()
. The parameter and functionality still exists incfbd_pbp_data()
but we expect this function will still exist but made obsolete in favor of a function more closely matchingnflfastR
's naming conventions. -
Similarly, data and metrics sourced from ESPN will begin with
espn_
as opposed tocfb_
. In particular, the two functions are nowespn_ratings_fpi()
andespn_metrics_wp()
-
Data generated from any of the
cfbfastR
methods will usecfb_
The CollegeFootballData API now requires an API key, here's a quick run-down:
-
To get an API key, follow the directions here: College Football Data Key Registration.
-
Using the key: You can save the key for consistent usage by adding
CFBD_API_KEY=XXXX-YOUR-API-KEY-HERE-XXXXX
to your .Renviron file (easily accessed viausethis::edit_r_environ()
). Runusethis::edit_r_environ()
, a new script will pop open named.Renviron
, THEN paste the following in the new script that pops up (without quotations)
CFBD_API_KEY = XXXX-YOUR-API-KEY-HERE-XXXXX
Save the script and restart your RStudio session, by clicking Session
(in between Plots
and Build
) and click Restart R
(n.b. there also exists the shortcut Ctrl + Shift + F10
to restart your session). If set correctly, from then on you should be able to use any of the cfbd_
functions without any other changes.
- For less consistent usage: At the beginning of every session or within an R environment, save your API key as the environment variable
CFBD_API_KEY
(with quotations) using a command like the following.
Sys.setenv(CFBD_API_KEY = "XXXX-YOUR-API-KEY-HERE-XXXXX")
- Added API Key methods. If you forget to set your environment variable, functions will give you a warning and ask for one.