Learn R Programming

prob (version 0.9-1)

cards: A Standard Set of Playing Cards

Description

The title says it all.

Usage

cards(jokers = FALSE, makespace = FALSE)

Arguments

jokers
logical.
makespace
logical.

Value

  • A data frame with columns rank and suit, and optionally a column of equally likely probs.

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.

See Also

rolldie, tosscoin, and roulette

Examples

Run this code
cards()
cards(makespace = TRUE)

Run the code above in your browser using DataLab