fix_drives: Adds the week, home team, and away team to each drive info

Description Usage Arguments Value Examples

View source: R/fix_drives.R

Description

This function merges the fixed game info to the drive data so that we have the week of each game, home and away team, and who is on offense and defense

Usage

1
fix_drives(games, drives)

Arguments

games

the game information from the fix_games function

drives

the "drive.csv" values from cfb stats data.

Value

a data frame containing with the fixed drive info

Examples

1
2
3
4
years <- 2014
drives <- readin("drive", years)
games <- readin("game", years)
fixed_drives <- fix_games(games) %>% fix_drives(drives)

mattmills49/MELLS documentation built on May 21, 2019, 1:25 p.m.