public
Created

Tiger and LeBron

  • Download Gist
joint2.r
R
1 2 3 4 5 6 7 8 9
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)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.