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: 2022-12-15 01:13:54 UTC
#> # A tibble: 10,358 × 36
#> season round pick team gsis_id pfr_player_id cfb_pl…¹ pfr_p…² hof posit…³
#> <int> <int> <int> <chr> <chr> <chr> <chr> <chr> <lgl> <chr>
#> 1 1980 1 1 DET NA SimsBi00 billy-s… Billy … FALSE RB
#> 2 1980 1 2 NYJ NA JoneLa00 lam-jon… Lam Jo… FALSE WR
#> 3 1980 1 3 CIN NA MunoAn00 NA Anthon… TRUE T
#> 4 1980 1 4 GNB NA ClarBr23 bruce-c… Bruce … FALSE DE
#> 5 1980 1 5 BAL NA DickCu00 curtis-… Curtis… FALSE RB
#> 6 1980 1 6 STL NA GreeCu21 curtis-… Curtis… FALSE DE
#> 7 1980 1 7 ATL NA MillJu00 junior-… Junior… FALSE TE
#> 8 1980 1 8 NYG NA HaynMa00 mark-ha… Mark H… FALSE DB
#> 9 1980 1 9 MIN NA MartDo21 NA Doug M… FALSE DE
#> 10 1980 1 10 SEA NA GreeJa01 jacob-g… Jacob … FALSE DE
#> # … with 10,348 more rows, 26 more variables: category <chr>, side <chr>,
#> # college <chr>, age <dbl>, to <int>, allpro <dbl>, probowls <dbl>,
#> # seasons_started <dbl>, w_av <dbl>, car_av <dbl>, dr_av <dbl>, games <dbl>,
#> # pass_completions <dbl>, pass_attempts <dbl>, pass_yards <dbl>,
#> # pass_tds <dbl>, pass_ints <dbl>, rush_atts <dbl>, rush_yards <dbl>,
#> # rush_tds <dbl>, receptions <dbl>, rec_yards <dbl>, rec_tds <dbl>,
#> # def_solo_tackles <dbl>, def_ints <dbl>, def_sacks <dbl>, and abbreviated …
# }