Giter Site home page Giter Site logo

nfldraftr's Introduction

nfldraftr

R build status

Overview

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

Installation

Install from Github.

# Install remotes to download.
install.packages("remotes")

# And then install from github.
remotes::install_github("tomasokal/nfldraftr")

Draft Years

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.

Credits

All data is pulled from Pro Football Reference. Accuracy of this data is dependent on the source.

nfldraftr's People

Contributors

tomasokal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.