Learn R Programming

UsingR (version 2.0-7)

nba.draft: NBA draft lottery odds for 2002

Description

The NBA draft in 2002 has a lottery

Usage

data(nba.draft)

Arguments

Format

A data frame with 13 observations on the following 2 variables.

Team

Team name

Record

The team won-loss record

Balls

The number of balls (of 1000) that this team has in the lottery selection

Details

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.

Examples

Run this code
# NOT RUN {
data(nba.draft)
top.pick = sample(row.names(nba.draft),1,prob = nba.draft$Balls)
# }

Run the code above in your browser using DataLab