import_punts | R Documentation |
Easily import punting data for completed seasons.
This data has been pre-scraped and compiled here.
The only cleaning performed on this data before storing is filter(play_type == 'punt')
.
import_punts(years, local = FALSE, path = NULL)
years |
A year or range of years between 1999 and 2020, inclusive |
local |
Defaults to 'FALSE'. If 'TRUE', must also specify the local path to the 'puntr-data' folder. Importing a local copy of the data is much faster (~3 seconds, vs ~15 minutes) |
path |
The local path to the 'puntr-data' folder. Required when 'local = TRUE'. Omit the trailing '/', e.g. '/Users/yourname/footballfolder' |
A tibble punts
containing play-by-play punting data for the specified years
## Not run:
import_punts(1999:2020)
import_punts(1999:2020, local=TRUE, path='/my/local/path')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.