Skip to content

Instantly share code, notes, and snippets.

@cdesante
Created November 7, 2012 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdesante/4035176 to your computer and use it in GitHub Desktop.
Save cdesante/4035176 to your computer and use it in GitHub Desktop.
Tiger and LeBron
Tiger <- c()
LeBron <- c()
for (i in 1:1000) {
LeBron[i] <- sample(c( rep("Makes FT", 77), rep("Misses FT", 23)), 1)
Tiger[i] <- sample(c( rep("Fairway", 49), rep("Not FW", 51)), 1)
}
table(LeBron, Tiger)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment