remove_garbage: Filters out plays designated as garbage time plays

Description Usage Arguments Value Examples

View source: R/remove_garbage.R

Description

Garbage time plays are plays in the first quarter with leads greater than 28, 2nd quarter with leads greater than 24, 3rd quarter with leads greater than 21, and the 4th quarter with leads greater than 16.

Usage

1

Arguments

plays

a play by play data frame.

Value

a data frame containing all non-garbage plays

Examples

1
2
3
4
5
pass <- readin("pass", 2014)
rush <- readin("rush", 2014)
games <- readin("game", 2014)
game_info <- fix_games(games)
no_garbage <- combine_run_pass(rush, pass, game_info) %>% remove_garbage

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