load_rosters_weekly: Load Weekly Rosters

View source: R/load_rosters_weekly.R

load_rosters_weeklyR Documentation

Load Weekly Rosters

Description

Returns week level rosters (rather than latest for a given season as returned by load_rosters())

Usage

load_rosters_weekly(
  seasons = most_recent_season(roster = TRUE),
  file_type = getOption("nflreadr.prefer", default = "rds")
)

Arguments

seasons

a numeric vector of seasons to return, defaults to returning this year's data if it is March or later. If set to TRUE, will return all available data. Data available back to 2002.

file_type

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

Value

A tibble of weekly roster data.

See Also

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

Examples



try({ # prevents cran errors
  load_rosters_weekly(2020)
})



nflreadr documentation built on Sept. 8, 2023, 5:57 p.m.