I hereby claim:
- I am hitch17 on github.
- I am hitch (https://keybase.io/hitch) on keybase.
- I have a public key whose fingerprint is F787 A88D 6736 B8CD BEB5 154C 7058 33C9 47EE F02B
To claim this, I am signing this object:
library(reshape) | |
matchups <- read.csv('league-matchups.csv') # dont forget to set working directory or change the full path | |
league.sd <- sd(matchups$team_actual_points) | |
league.mean <- mean(matchups$team_actual_points) | |
weeks <- max(matchups$week) | |
team.melted <- melt(matchups, id.vars="place", measure.vars="team_actual_points") | |
places <- cast(team.melted, place ~ variable, fun.aggregate=mean)$place |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# unnecessary for DictObj, but the other code uses it. | |
import urllib2 | |
import csv | |
import os | |
class DictObj ( dict ): | |
"A wrapper for dictionaries that feel like py objects" | |
def __getattr__(self, key): | |
if key in self: | |
return self[key] |