| cards {prob} | R Documentation |
The title says it all.
cards(jokers = FALSE, makespace = FALSE)
jokers |
logical. |
makespace |
logical. |
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.
rolldie, tosscoin, and roulette
cards() cards(makespace = TRUE)