Can use to pull historical draft data from Pro Football Reference.
nfldraftr
currently provides the following information:
- YEAR: Year drafted
- ROUND: Round drafted
- OVERALL_PICK: Overall pick in draft
- TEAM: Name of team drafted by
- PLAYER: Name of player
- POSITION: Position drafted for
- AGE: Age when drafted
- COLLEGE: Name of college
- LAST_YEAR_PLAYED: Last year played in NFL
- ALL_PROS: Number of First Team ALL-PRO selections
- PRO_BOWLS: Number of Pro-Bowl selections
- YEARS_STARTED: Number of years as primary starter for his team at his position
- GAMES_PLAYED: Games played in NFL
Install from Github.
# Install remotes to download.
install.packages("remotes")
# And then install from github.
remotes::install_github("tomasokal/nfldraftr")
nfldraftr
provides historical draft data that can be accessed one year
at a time or through a range of years.
# Load package
library(nfldraftr)
# Draft data from 2020
draft2020 <- nfldraftr::draft_year(year = "2020")
head(draft2020[, 1:8]) %>%
kable(row.names = FALSE)
YEAR |
ROUND |
OVERALL_PICK |
TEAM |
PLAYER |
POSITION |
AGE |
COLLEGE |
---|---|---|---|---|---|---|---|
2020 |
1 |
1 |
CIN |
Joe Burrow |
QB |
23 |
LSU |
2020 |
1 |
2 |
WAS |
Chase Young |
DE |
21 |
Ohio St. |
2020 |
1 |
3 |
DET |
Jeff Okudah |
CB |
21 |
Ohio St. |
2020 |
1 |
4 |
NYG |
Andrew Thomas |
OT |
21 |
Georgia |
2020 |
1 |
5 |
MIA |
Tua Tagovailoa |
QB |
22 |
Alabama |
2020 |
1 |
6 |
LAC |
Justin Herbert |
QB |
22 |
Oregon |
# Draft data from 2020
df_draft_range <- nfldraftr::draft_range(min = "2015", max = "2020")
df_draft_range <- df_draft_range[order(df_draft_range$OVERALL_PICK), ]
head(df_draft_range[, c(1, 3, 4, 5, 6, 12, 13)]) %>%
kable(row.names = FALSE)
YEAR |
OVERALL_PICK |
TEAM |
PLAYER |
POSITION |
YEARS_STARTER |
GAMES_PLAYED |
---|---|---|---|---|---|---|
2015 |
1 |
TAM |
Jameis Winston |
QB |
5 |
72 |
2016 |
1 |
LAR |
Jared Goff |
QB |
4 |
54 |
2017 |
1 |
CLE |
Myles Garrett |
DE |
3 |
37 |
2018 |
1 |
CLE |
Baker Mayfield |
QB |
2 |
30 |
2019 |
1 |
ARI |
Kyler Murray |
QB |
1 |
16 |
2020 |
1 |
CIN |
Joe Burrow |
QB |
0 |
NA |
Data is pulled in to feature draft year, pick round, overall pick number, team, player, position, age, and college.
All data is pulled from Pro Football Reference. Accuracy of this data is dependent on the source.