Description Usage Arguments Details Value
View source: R/helper_pbp_add_betting_cols.R
Add Betting columns This is only for DI-FBS football
1 | add_betting_cols(play_df, g_id, yr)
|
play_df |
(data.frame required): Play-By-Play dataframe as pulled from 'cfb_pbp_dat()', 'clean_pbp_dat()','penalty_detection()' |
g_id |
(Integer optional): Game ID filter for querying a single game Can be found using the 'cfb_game_info()' function |
yr |
(Integer optional): Select year (example: 2018) |
Add Betting columns. Requires the following parameters to be present:
play_dfPlay-By-Play dataframe as pulled from 'cfb_pbp_dat()' and 'clean_pbp_dat()'
g_idUnique game identifier - 'game_id'
yrYear parameter
The original 'play_df' with the following columns appended to it:
The spread for the game
Formatted spread with the favored team listed with the numeric spread
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.