Learn R Programming

ffscrapr (version 1.4.8)

nflfastr_rosters: Import nflfastr roster data

Description

Fetches a copy of roster data from nflfastr's data repository. The same input/output as nflfastr's fast_scraper_roster function.

Usage

nflfastr_rosters(seasons)

Value

Data frame where each individual row represents a player in the roster of the given team and season

Arguments

seasons

A numeric vector of seasons, earliest of which is 1999. TRUE returns all seasons, NULL returns latest season.

Details

If you have any issues with the output of this data, please open an issue in the nflfastr repository.

See Also

Examples

Run this code
# \donttest{
try( # try only shown here because sometimes CRAN checks are weird
  nflfastr_rosters(seasons = 2019:2020)
)
# }

Run the code above in your browser using DataLab