nba.draft | R Documentation |
The NBA draft in 2002 has a lottery
data(nba.draft)
A data frame with 13 observations on the following 2 variables.
Team name
The team won-loss record
The number of balls (of 1000) that this team has in the lottery selection
The NBA draft has a lottery to determing the top 13 placings. The odds in the lottery are determined by the won-loss record of the team, with poorer records having better odds of winning.
Data is taken from https://www.nba.com/news/draft_ties_020424.html.
data(nba.draft) top.pick = sample(row.names(nba.draft),1,prob = nba.draft$Balls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.