cfb_betting_lines: Get Betting information from games

Description Usage Arguments Value Source Examples

View source: R/cfb_betting_lines.R

Description

Get Betting information from games

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
cfb_betting_lines(
  game_id = NULL,
  year = NULL,
  week = NULL,
  season_type = "regular",
  team = NULL,
  home_team = NULL,
  away_team = NULL,
  conference = NULL,
  line_provider = NULL
)

Arguments

game_id

(Integer optional): Game ID filter for querying a single game Can be found using the cfbscrapR::cfb_game_info() function

year

(Integer required): Year, 4 digit format(YYYY)

week

(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff (i.e. 2013 or earlier)

season_type

(String default regular): Select Season Type: regular or postseason

team

(String optional): D-I Team

home_team

(String optional): Home D-I Team

away_team

(String optional): Away D-I Team

conference

(String optional): Conference abbreviation - Select a valid FBS conference
Conference abbreviations P5: ACC, B12, B1G, SEC, PAC
Conference abbreviations G5 and FBS Independents: CUSA, MAC, MWC, Ind, SBC, AAC

line_provider

(String optional): Select Line Provider - Caesars, consensus, numberfire, or teamrankings

Value

Betting information for games with the following columns:

game_id

integer. Unique game identifier - 'game_id'.

season

integer. Season parameter.

season_type

character. Season Type (regular, postseason, both).

week

integer. Week, values from 1-15, 1-14 for seasons pre-playoff (i.e. 2013 or earlier).

home_team

character. Home D-I Team.

home_conference

character. Home D-I Conference.

home_score

integer. Home Score.

away_team

character. Away D-I Team.

away_conference

character. Away D-I Conference.

away_score

integer. Away Score.

provider

character. Line provider.

spread

character. Spread for the game.

formatted_spread

character. Formatted spread for the game.

over_under

character. Over/Under for the game.

Source

https://api.collegefootballdata.com/lines

Examples

1
2
3
4
cfb_betting_lines(year = 2018, week = 12, team = 'Florida State')

#7 OTs LSU at TAMU
cfb_betting_lines(year = 2018, week = 13, team = "Texas A&M", conference = 'SEC')

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