Skip to content

Instantly share code, notes, and snippets.

@bdilday
bdilday / HOF_metrics.csv
Created September 13, 2015 02:57
HOF selector - bar chart - test ii
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 31 columns, instead of 27. in line 5.
pname,plid,birthYear,minyr,fWar,rWar,fwa2,rwa2,fwa3,rwa3,fwa4,rwa4,fwa5,rwa5,fwa7,rwa7,fwb3,rwb3,fwb5,rwb5,fwb7,rwb7,fDoom,rDoom,fJAWS,rJAWS,ibat,hofmon,hofstd,ithisyear,poz100
JackMorris,morrija02,1955,1977,52.50,43.90,21.10,21.00,10.10,11.60,3.00,5.20,0.80,1.00,-0.00,-0.00,15.00,16.00,22.40,25.20,29.70,32.60,55.49,53.69,41.10,38.25,0,122,39,0,0
NoodlesHahn,hahnno01,1879,1899,39.60,46.00,25.40,33.90,19.40,27.90,13.40,21.90,7.40,15.90,0.40,5.00,20.20,25.20,31.90,39.50,38.70,46.00,55.49,65.97,39.15,46.00,0,62,31,0,0
WarrenSpahn,spahnwa01,1921,1942,81.30,92.70,44.60,58.60,27.40,41.40,14.10,26.20,5.90,15.40,-0.00,5.20,19.60,26.20,30.90,38.50,40.80,49.70,78.82,95.05,61.05,71.20,0,260,66,0,43
KennyRogers,rogerke01,1964,1989,46.80,51.20,17.00,24.60,6.70,14.50,1.50,8.10,-0.00,3.30,-0.00,0.50,13.50,18.30,20.60,28.10,27.30,35.20,49.98,60.86,37.05,43.20,0,66,29,0,0
RickWise,wiseri01,1945,1964,49.80,32.20,21.70,11.20,11.70,3.80,4.80,1.10,1.00,-0.00,-0.00,-0.00,16.00,12.50,24.80,18.70,32.00,24.50,56.14,40.10,40.90,28.35,
@bdilday
bdilday / README.md
Last active September 1, 2016 02:51
list of pitcher - catcher combinations (for old timey catcher metrics)

the data for the following R pub

@bdilday
bdilday / README.MD
Last active September 16, 2016 05:20
lineup PCA

csv file of lineup slot and fielding position for baseball lineups going back to 1902

@bdilday
bdilday / header.csv
Last active September 25, 2016 23:21
teamid yearid playerid pa namefirst namelast namefrac nameweight birthcountry
@bdilday
bdilday / LICENSE.txt
Last active October 3, 2016 20:35
Device orientation for brushing with a mouseover fallback
The MIT License (MIT)
Copyright (c) 2016 Ben Dilday
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SO
@bdilday
bdilday / iwrs_1961_2011.csv
Created October 14, 2016 01:43
intentional walk rage scale 1961-2011
We can't make this file beautiful and searchable because it's too large.
game_id,home_team,away_team,offender,recip,pit_id,bat_id,bat_ondeck_id,inn,outs,s1,s2,s3,s4,s5,s6,sTotal
BAL196104162,BAL,MIN,MIN1961,BAL1961,kralj101,triag101,hansr102,1,1,9,3,3,3,0,0,18
BAL196104240,BAL,CLE,BAL1961,CLE1961,pappm101,kirkw101,philb102,6,1,4,3,0,3,0,0,10
BAL196105170,BAL,DET,BAL1961,DET1961,fishj101,cashn101,boros101,7,1,3,3,0,3,0,0,9
BAL196106062,BAL,LAA,LAA1961,BAL1961,mcbrk101,triag101,hansr102,4,2,6,3,0,3,3,0,15
BAL196106080,BAL,MIN,BAL1961,MIN1961,fishj101,killh102,allib103,8,1,2,3,0,3,0,0,8
BAL196106300,BAL,DET,DET1961,BAL1961,bunnj101,triag101,hansr102,6,1,4,3,0,3,0,0,10
BAL196106300,BAL,DET,BAL1961,DET1961,wilhh101,cashn101,boros101,9,0,1,3,0,3,3,0,10
BAL196107010,BAL,DET,BAL1961,DET1961,stocw101,maxwc101,aguih101,8,2,2,0,3,3,3,0,11
BAL196107010,BAL,DET,BAL1961,DET1961,hyded101,cashn101,boros101,11,1,1,3,0,3,0,0,7
@bdilday
bdilday / HOF_candidates_bbrefid_2017.csv
Last active November 27, 2016 21:33
baseball reference IDs for 2017 HOF candidates
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
bbrefid
bagweje01
bondsba01
clemero02
hoffmtr01
kentje01
martied01
mcgrifr01
mussimi01
raineti01
@bdilday
bdilday / AustralianTaxableIncome.csv
Created January 2, 2017 15:19
makeover monday week 1 data
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 5 columns, instead of 3. in line 9.
Gender Rank,Occupation,Gender,Individuals,Average Taxable Income $
795,Abattoir process worker; Meat process worker; Meatworker – meatworker’s labourer,Female,5961,36359
881,Abattoir process worker; Meat process worker; Meatworker – meatworker’s labourer,Male,17241,40954
699,Aboriginal and Torres Strait Islander education worker,Female,1386,40926
828,Aboriginal and Torres Strait Islander education worker,Male,636,44077
641,Aboriginal and Torres Strait Islander health liaison officer; Aboriginal and Torres Strait Islander health worker,Female,1878,43545
760,Aboriginal and Torres Strait Islander health liaison officer; Aboriginal and Torres Strait Islander health worker,Male,903,47833
200,Accountant; Bank accountant; Chartered accountant; Financial analyst,Female,78380,71552
136,Accountant; Bank accountant; Chartered accountant; Financial analyst,Male,77112,105107
157,Accounting practice manager; Architectural practice manager; Legal practice manager; Manager – other practice; Veterinary practice manager,Female
@bdilday
bdilday / pitching.metrics.ranks.csv
Last active January 21, 2017 01:21
comparison of pitching metrics from baseball reference & bpro
We can't make this file beautiful and searchable because it's too large.
"YEAR","NAME","RANK","LVL","AGE","G","GS","PITCHES","IP","IPStart","IPRelief","FIP","cFIP","ERA","DRA","PWARP","player_ID","WAR","WAA","IPouts","lg.dra","lg.era","lg.fip","lg.cfip","dra.minus","era.minus","fip.minus","cfip.minus","pwarp.per.inning","war.per.inning","era.rank","era.m.rank","dra.rank","dra.m.rank","fip.rank","fip.m.rank","cfip.rank","cfip.m.rank","pwarp.rank","pwarp.per.inning.rank","war.rank","war.per.inning.rank"
1968,"Bob Gibson",4495,"MLB",32,34,34,0,304.7,"304.7","0.0",1.93,69,1.12,1.9,8.51,"gibsobo01",11.24,8.6428,914,3.1796935736251,2.80775061774639,2.84043976293038,95.4706774366999,0.597541856158753,0.398895825334714,0.679472251159055,0.722734999400724,0.0279291106005907,0.0368927789934354,1,2,25,118,6,90,163,189,189,376,6,31
1985,"Dwight Gooden",4506,"MLB",20,35,35,0,276.7,"276.7","0.0",2.06,58,1.53,1.98,10.61,"goodedw01",12.15,9.7825,830,4.0327490848567,3.59918578955359,3.7396735848314,96.9331481491894,0.490980211844834,0.425096143811394,0.550850215472182,0.598350524123413,0.038344777
@bdilday
bdilday / march_madness_nodes.csv
Created February 21, 2017 19:25
march madness bracket tree
game_number seed_high seed_low child_game_number
1 1 63 33
2 30 36 33
3 19 50 34
4 14 52 34
5 23 41 35
6 10 56 35
7 27 38 36
8 7 61 36
9 4 67 37