View source: R/aggregate_game_stats_kicking.R
calculate_player_stats_kicking | R Documentation |
Build columns that aggregate kicking stats at the game level.
calculate_player_stats_kicking(pbp, weekly = FALSE)
pbp |
A Data frame of NFL play-by-play data typically loaded with
|
weekly |
If |
a dataframe of kicking stats
https://nflreadr.nflverse.com/reference/load_player_stats.html for the nflreadr function to download this from repo (stat_type = "kicking"
)
try({# to avoid CRAN test problems
pbp <- nflreadr::load_pbp(2021)
weekly <- calculate_player_stats_kicking(pbp, weekly = TRUE)
dplyr::glimpse(weekly)
overall <- calculate_player_stats_kicking(pbp, weekly = FALSE)
dplyr::glimpse(overall)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.