load_participation: Load Participation Data

View source: R/load_participation.R

load_participationR 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 TRUE, returns all available data since 2016.

include_pbp

a logical: download and join pbp to this data?

file_type

One of c("rds", "qs", "csv", "parquet"). Can also be set globally with options(nflreadr.prefer)

Value

A dataframe of participation data, optionally merged with play by play

Examples



try({ # prevents cran errors
  load_participation(seasons = 2020, include_pbp = TRUE)
})



nflreadr documentation built on Sept. 11, 2024, 6:14 p.m.