Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 532 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 532 Bytes

batting_average

Get the average batting by running:

avg_batting.rb [--team="teamID"] [--year=yearID]

For example:

avg_batting.rb                                       #get all the result for all teams and all years
avg_batting.rb --team="Chicago Colts"                #get the result for team "Chicago Colts"
avg_batting.rb --year=1892                           #get the result in year 1892 for all teams
avg_batting.rb --team="Chicago Colts" --year=1892    #get the result for team "Chicago Colts" in year 1892