Learn R Programming

BSDA (version 1.01)

Dice: Outcomes and probabilities of the roll of a pair of fair dice

Description

Data for Exercise 3.109

Usage

Dice

Arguments

Format

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

x

a numeric vector

P.x.

a numeric vector

Examples

Run this code
# NOT RUN {
str(Dice)
attach(Dice)
roll1 <- sample(1:6,2000,replace=TRUE)
roll2 <- sample(1:6,2000,replace=TRUE)
outcome <- roll1+roll2
table(outcome)/length(outcome)
detach(Dice)
remove(roll1,roll2,outcome)
# }

Run the code above in your browser using DataLab