This function was deprecated because we have a new, much better and harmonized approach in calculate_stats().
Build columns that aggregate official defense stats either at the game level or at the level of the entire data frame passed.
calculate_player_stats_def(pbp, weekly =FALSE)
Arguments
pbp: A Data frame of NFL play-by-play data typically loaded with load_pbp() or build_nflfastR_pbp(). If the data doesn't include the variable qb_epa, the function add_qb_epa() will be called to add it.
weekly: If TRUE, returns week-by-week stats, otherwise, stats for the entire Data frame.
Returns
A data frame of defensive player stats. See dictionary (# TODO)