View source: R/load_participation.R
load_participation | R Documentation |
Loads participation data from the nflverse-data repository
load_participation(
seasons = most_recent_season(),
include_pbp = FALSE,
file_type = getOption("nflreadr.prefer", default = "rds")
)
seasons |
A numeric vector of 4-digit years associated with given NFL seasons - defaults to latest season. If set to |
include_pbp |
a logical: download and join pbp to this data? |
file_type |
One of |
A dataframe of participation data, optionally merged with play by play
try({ # prevents cran errors
load_participation(seasons = 2020, include_pbp = TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.