load_pbp: Load Play By Play

View source: R/load_pbp.R

load_pbpR Documentation

Load Play By Play

Description

Loads play by play seasons from the nflverse-data repository

Usage

load_pbp(...)

Arguments

...

Arguments passed on to nflreadr::load_pbp

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 1999.

file_type

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

Value

The complete nflfastR dataset as returned by nflfastR::build_nflfastR_pbp() (see below) for all given seasons

See Also

https://nflreadr.nflverse.com/articles/dictionary_pbp.html for a web version of the data dictionary

dictionary_pbp for the data dictionary bundled as a package dataframe

https://www.nflfastr.com/reference/build_nflfastR_pbp.html for the nflfastR function nflfastR::build_nflfastR_pbp()

Issues with this data should be filed here: https://github.com/nflverse/nflverse-pbp

Examples


pbp <- load_pbp(2019:2020)
dplyr::glimpse(pbp)


nflfastR documentation built on Nov. 10, 2022, 5:41 p.m.