Datasets for Simulation

0th

Percentile

Datasets for Probabilistic Simulation

For performing elementary probability calculations in introductory statistic courses, there might datasets of playing cards casually be wanted. The dataset roulette contains the standard sample space for one spin on a roulette wheel. cards contains the standard set of 52 playing cards in four colours. tarot does the same with a classic tarot deck.

Keywords
datasets
Usage
cards tarot roulette
Value

cards is a data.frame with two columns named rank and suittarot is a data.frame with three columns named rank, suit and descroulette is a data.frame with two columns named num and col

Aliases
  • cards
  • tarot
  • roulette
Examples
head(cards)
head(tarot)
head(roulette)

# drawing 5 cards
sample(do.call(paste, cards), 5)

# spin the wheel
sample(do.call(paste, roulette), 1)

# simulate the evening in Las Vegas
sample(do.call(paste, roulette), 32, replace=TRUE)
Documentation reproduced from package DescTools, version 0.99.19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.