Learn R Programming

nflfastR (version 4.3.0)

load_pbp: Load Play By Play

Description

Loads multiple seasons from the nflfastR data repository

Usage

load_pbp(..., qs = lifecycle::deprecated())

Value

The complete nflfastR dataset as returned by nflfastR::build_nflfastR_pbp()

(see below) for all given seasons

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 "rds" or "qs". Can also be set globally with options(nflreadr.prefer)

qs

[Deprecated] has no effect and will be removed in a future release.

See Also

dictionary_pbp for the data dictionary as a dataframe

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

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

Examples

Run this code
# \donttest{
pbp <- load_pbp(2019:2020)
dplyr::glimpse(pbp)
# }

Run the code above in your browser using DataLab