This function is essentially a convenient wrapper for dplyr::summarise which includes all of the relevant columns from a puntr-style data frame. This function differs from puntr::create_mini in that it groups by both punter_player_name and season (and adds a convenient seasonid column to uniquely identify each row). It is unfortunately not customizable beyond the setting of a minimum number of punts to be included; if you have additional parameters you'd like to be summarised, the easiest thing would be to call summarise yourself.

by_punter_seasons(punts, ..., threshold = 32)

Arguments

punts

The play-by-play punting data to be summarized

threshold

The minimum number of punts for a season to be included, defaults to 32

Value

A tibble where each row is a punter-season and each column is a stat

Examples

if (FALSE) {
by_punter_seasons(punts)
}