cards | R Documentation |
The title says it all.
cards(jokers = FALSE, makespace = FALSE)
jokers |
logical. Include jokers in the deck. |
makespace |
logical. Include a column of equally likely probabilities. |
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.
A data frame with columns rank
and suit
, and optionally a column of equally likely probs
.
G. Jay Kerns gkerns@ysu.edu.
rolldie
, tosscoin
, and roulette
cards()
cards(makespace = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.