Skip to contents

Load a dataframe of player-level information, including IDs and other mostly-immutable data (birthdates, college, draft position etc.)

Usage

load_players(file_type = getOption("nflreadr.prefer", default = "rds"))

Arguments

file_type

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

Value

A tibble with one row per player.

See also

Issues with this data should be filed here: https://github.com/nflverse/nflreadr and it will be triaged appropriately.

Examples

# \donttest{
try({ # prevents cran errors
  load_players()
})
#> Error in vapply(keys, remove_one_, TRUE) : values must be length 1,
#>  but FUN(X[[3]]) result is length 0
# }