1. #1
    matthew919
    Update your status
    matthew919's Avatar Become A Pro!
    Join Date: 11-21-12
    Posts: 421
    Betpoints: 5869

    R script for computing running Pythagorean expectations and game by game BaseRuns

    Thought I'd provide a script for anyone interested in R programming. It's nothing fancy- just takes retrosheet game log files and computes a few statistics from them. Probably more valuable as example code for people looking to learn a very useful programming language.

    Just download a "glXXXX" file from retrosheet, change the directory location in the script to reflect where it resides on your machine, and run. No warranty on this, since I just typed it up real fast. Anyway, hope it can be useful to someone.

    Matt
    Attached Files

  2. #2
    Miz
    Miz's Avatar Become A Pro!
    Join Date: 08-30-09
    Posts: 695
    Betpoints: 3162

    thanks for sharing, Matt. I'll peruse this tonight.

  3. #3
    TomG
    TomG's Avatar Become A Pro!
    Join Date: 10-29-07
    Posts: 500

    looks like a good start. if you're interested in that kind of stuff there is a dead sports analytics package on cran you could probably adopt and attempt to collaborate with others on

    http://cran.stat.ucla.edu/web/packag...ics/index.html

  4. #4
    matthew919
    Update your status
    matthew919's Avatar Become A Pro!
    Join Date: 11-21-12
    Posts: 421
    Betpoints: 5869

    Thanks for the info Tom.

Top