add_betting_cols: Add Betting columns This is only for DI-FBS football

Description Usage Arguments Details Value

View source: R/helper_pbp_add_betting_cols.R

Description

Add Betting columns This is only for DI-FBS football

Usage

1
add_betting_cols(play_df, g_id, yr)

Arguments

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)

Details

Add Betting columns. Requires the following parameters to be present:

Value

The original 'play_df' with the following columns appended to it:

spread

The spread for the game

formatted_spread

Formatted spread with the favored team listed with the numeric spread


meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.