Loads every draft pick since 1980 courtesy of PFR.
Usage
load_draft_picks(
seasons = TRUE,
file_type = getOption("nflreadr.prefer", default = "rds")
)
Arguments
- seasons
a numeric vector of seasons to return, default
TRUE
returns all available data- file_type
One of
c("rds", "qs", "csv", "parquet")
. Can also be set globally withoptions(nflreadr.prefer)
See also
https://nflreadr.nflverse.com/articles/dictionary_draft_picks.html for the web data dictionary
dictionary_draft_picks
for the data dictionary as bundled within the package
Issues with this data should be filed here: https://github.com/nflverse/nflverse-data
Examples
# \donttest{
try({ # prevents cran errors
load_draft_picks()
})
#> ── nflverse Draft Picks, via Pro Football Reference ────────────────────────────
#> ℹ Data updated: 2023-05-05 06:08:43 UTC
#> # A tibble: 12,156 × 36
#> season round pick team gsis_id pfr_player_id cfb_player_id pfr_player_name
#> <int> <int> <int> <chr> <chr> <chr> <chr> <chr>
#> 1 1980 1 1 DET NA SimsBi00 billy-sims-1 Billy Sims
#> 2 1980 1 2 NYJ NA JoneLa00 lam-jones-1 Lam Jones
#> 3 1980 1 3 CIN NA MunoAn00 NA Anthony Munoz
#> 4 1980 1 4 GNB NA ClarBr23 bruce-clark-1 Bruce Clark
#> 5 1980 1 5 BAL NA DickCu00 curtis-dickey… Curtis Dickey
#> 6 1980 1 6 STL NA GreeCu21 curtis-greer-1 Curtis Greer
#> 7 1980 1 7 ATL NA MillJu00 junior-miller… Junior Miller
#> 8 1980 1 8 NYG NA HaynMa00 mark-haynes-1 Mark Haynes
#> 9 1980 1 9 MIN NA MartDo21 NA Doug Martin
#> 10 1980 1 10 SEA NA GreeJa01 jacob-green-2 Jacob Green
#> # ℹ 12,146 more rows
#> # ℹ 28 more variables: hof <lgl>, position <chr>, category <chr>, side <chr>,
#> # college <chr>, age <int>, to <int>, allpro <int>, probowls <int>,
#> # seasons_started <int>, w_av <int>, car_av <lgl>, dr_av <int>, games <int>,
#> # pass_completions <int>, pass_attempts <int>, pass_yards <int>,
#> # pass_tds <int>, pass_ints <int>, rush_atts <int>, rush_yards <int>,
#> # rush_tds <int>, receptions <int>, rec_yards <int>, rec_tds <int>, …
# }