load_participation {nflreadr} | R Documentation |
Load Participation Data
Description
Loads participation data from the nflverse-data repository
Usage
load_participation(
seasons = most_recent_season(),
include_pbp = FALSE,
file_type = getOption("nflreadr.prefer", default = "rds")
)
Arguments
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 |
Value
A dataframe of participation data, optionally merged with play by play
Examples
try({ # prevents cran errors
load_participation(seasons = 2020, include_pbp = TRUE)
})
[Package nflreadr version 1.4.1 Index]