Description Usage Arguments Value Examples
This function takes in a data frame of plays read in from the CFB Stats play by play file after the time of each play has been added. The function determines a winner of each game, adjusts the down, distance, and spot for kickoffs, determines if the game is against an FCS opponent, adds other indicator variables, and handles overtime plays.
1 | DataPrep(plays, yearvec, return.ot = F)
|
plays |
a data frame containing plays from the CFB Stats play.csv file |
yearvec |
the numeric vector of years to read in the data for |
return.ot |
logical indicator on what to do with overtime plays |
A list containing the plays in regulation. If return.ot
is TRUE
then the list contains a second data frame for overtime plays
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.