cards {probs} | R Documentation |
A Standard Set of Playing Cards
Description
The title says it all.
Usage
cards(jokers = FALSE, makespace = FALSE)
Arguments
jokers |
logical. Include jokers in the deck. |
makespace |
logical. Include a column of equally likely probabilities. |
Details
This generates a data frame sample space of a standard deck of 52 playing cards. Optionally, the user can specify that Jokers be included, which have a rank
but with suit
a missing value.
Value
A data frame with columns rank
and suit
, and optionally a column of equally likely probs
.
Author(s)
G. Jay Kerns gkerns@ysu.edu.
See Also
rolldie
, tosscoin
, and roulette
Examples
cards()
cards(makespace = TRUE)
[Package probs version 0.9.9 Index]