create_miniY: Summarize data for player-seasons

View source: R/mini.R

create_miniYR Documentation

Summarize data for player-seasons

Description

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). NOTE: puntr::create_mini, puntr::create_miniY, and puntr::create_miniG are being phased out in favor of puntr::by_punters, puntr::by_punter_seasons, and puntr::by_punter_games

Usage

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

Arguments

punts

The play-by-play punting data to be summarized

...

Any additional arguments will be passed through to dplyr::summarise

threshold

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

Value

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

Examples

## Not run: 
create_miniY(punts)

## End(Not run)

Puntalytics/puntr documentation built on Sept. 7, 2024, 5:23 p.m.