Coder Social home page Coder Social logo

keberwein / baseballdbr Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 2.0 9.67 MB

A tool to gather and analyze data from the Baseball Databank maintained by the Chadwick Bureau or the Lahman Database, maintained by Sean Lahman. Provides ETL and analysis tools for sabermetrics and advanced statistics.

License: Other

R 100.00%
sabermetrics r baseball statistics

baseballdbr's People

Contributors

keberwein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

baseballdbr's Issues

The Lahman "Master" table is called "People" in the BBDB

There was a previous issue that alerted me to possible confusion here. I would like to keep the BBDB naming schema, however we need to incorporate a warning when a user attempts to use the code get_bbdb(table = "Master") . Also, we should probably address this, and any other small differences, in the README.

Advanced Metrics - Any more in pipeline

I'm pretty ignorant about how some of these are calculated and whether the base data allows you to do more but, for example, a recent article on 538 about Adrian Beltre included RAR (Runs above Replavement)

Your package has the somewhat similar RAA but does not allow me to directly replicate or expand on the 538 analyses

Master.csv not available

library(baseballDBR)
get_bbdb(table = "Master")
cannot open URL 'https://raw.githubusercontent.com/chadwickbureau/baseballdatabank/master/core/Master.csv': HTTP status was '404 Not Found'Error in file(file, "rt") : cannot open the connection

Other tables I have tried work smoothly

If I download all tables, I get 27 (as stated in get_bbdb() info) but Master is not one of them

> get_bbdb(AllTables = TRUE)
trying URL 'https://github.com/chadwickbureau/baseballdatabank/archive/master.zip'
Content type 'application/zip' length unknown
downloaded 8.5 MB
[1] "Teams"               "Appearances"         "Parks"               "FieldingPost"       
 [5] "Batting"             "AwardsSharePlayers"  "SeriesPost"          "AwardsPlayers"      
 [9] "People"              "FieldingOFsplit"     "Managers"            "AwardsManagers"     
[13] "Pitching"            "BattingPost"         "PitchingPost"        "Fielding"           
[17] "AwardsShareManagers" "HomeGames"           "FieldingOF"          "TeamsHalf"          
[21] "AllstarFull"         "HallOfFame"          "Schools"             "ManagersHalf"       
[25] "TeamsFranchises"     "Salaries"            "CollegePlaying"

On a side note, your tables includes 2016 whilst the latest Lahman package is still 2015. Are they still testing their data before issuing?

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.