https://github.com/codenamev/baseball-stats
Baseball statistical analysis
https://github.com/codenamev/baseball-stats
Last synced: about 1 year ago
JSON representation
Baseball statistical analysis
- Host: GitHub
- URL: https://github.com/codenamev/baseball-stats
- Owner: codenamev
- License: mit
- Created: 2014-10-28T18:02:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-04T13:08:49.000Z (over 11 years ago)
- Last Synced: 2024-05-02T00:28:00.197Z (about 2 years ago)
- Language: Ruby
- Size: 750 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BaseballStats
Baseball player statistical analysis
## Installation
Add this line to your application's Gemfile:
gem 'codenamev-baseball-stats'
And then execute:
$ bundle
Or install it yourself as:
$ gem install codenamev-baseball-stats
## Usage
After installing the gem, running `baseball_stats` from the command-line will
display the results to the following excersize:
1. Most improved batting average from 2009 to 2010
2. Slugging percentage for all players on the Oakland A's in 2007
3. Who was the AL and NL tripple crown winner for 2011 and 2012. If no one won
the crown should be "(No winner)"
## Running tests
1. `bundle exec rake db:migrate db:test:prepare`
2. `rake`
## NOTES
The first run of the command imports two fairly large CSV files with sample
data into an SQLite3 database. This may take up to 5 minutes depending on your machine.