fix_fcs: Convert all FCS teams to one "team"

Description Usage Arguments Value Examples

View source: R/fix_fcs.r

Description

FCS teams usually only show up once or twice in each season. To overcome the issues with the small sample size of predicting these games this function treats all fcs teams as one team.

Usage

1
fix_fcs(all_info, teams, conf)

Arguments

all_info

the cleaned play by play data frame

teams

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

conf

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

Value

a data frame containing with the fixed offense and defense team codes.

Examples

1
2
3
4
5
6
7
8
years <- 2014
teams <- readin("team", years)
runs <- readin("rush", years)
pass <- readin("pass", years)
games <- readin("game", years)
conf <- readin("conference", years)
game_info <- fix_games(games)
no_fcs <- combine_run_pass(rush, pass, game_info) %>% fix_fcs(teams, conf)

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