by_punter_games | R Documentation |
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
and puntr::create_miniY
in that it groups by punter_player_name
, season
, and week
(and adds a convenient weekid
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_games(punts, ..., threshold = 1)
punts |
The play-by-play punting data to be summarized |
threshold |
The minimum number of punts for a week to be included, defaults to 1 |
A tibble miniG
where each row is a punter-week and each column is a stat
## Not run:
create_miniG(punts)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.