Skip to contents

Get weather from games.

Usage

cfbd_game_weather(
  year,
  week = NULL,
  season_type = "regular",
  team = NULL,
  conference = NULL
)

Arguments

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, postseason, both, allstar, spring_regular, spring_postseason

team

(String optional): 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

Value

cfbd_game_weather() - A data frame with 23 variables:

col_nametypesdescription
game_idintegerReferencing game id.
seasonintegerSeason of the game.
weekintegerGame week.
season_typecharacterSeason type of the game.
start_datecharacterGame date.
start_time_tbdlogicalTRUE/FALSE flag for if the game's start time is to be determined.
game_indoorslogicalTRUE/FALSE flag for if the game is indoors.
home_teamcharacterHome team name.
home_conferencecharacterHome team conference.
away_teamcharacterAway team name.
away_conferencecharacterAway team conference.
venue_idintegerReferencing venue id.
venuecharacterVenue name.
temperatureintegerGame-time temperature, in degrees Fahrenheit.
dew_pointintegerDew point at kickoff, in degrees Fahrenheit.
humidityintegerRelative humidity at kickoff, as a percentage (0-100).
precipitationintegerPrecipitation total at kickoff, in inches.
snowfallintegerSnowfall total at kickoff, in inches.
wind_directionintegerWind direction, in degrees (0-360, 0 = north).
wind_speedintegerWind speed, in miles per hour.
pressureintegerBarometric pressure, in millibars.
weather_condition_codeintegerWeather condition code from the upstream weather provider.
weather_conditioncharacterFree-text weather condition (e.g. "Clear", "Light rain").