Created
November 7, 2012 23:02
-
-
Save cdesante/4035176 to your computer and use it in GitHub Desktop.
Tiger and LeBron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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