A character vector with two or three character representations of each card in a standard 52-card deck.
Cards
The 2 of clubs is represented as "2C", while the 10 of diamonds is "10D".
if (require(mosaic)) {
deal(Cards, 13) # bridge hand
deal(Cards, 5) # poker hand
shuffle(Cards) # shuffled deck
}
#> [1] "5D" "5S" "7S" "2C" "KH" "4C" "9D" "9H" "QS" "5H" "9C" "6D"
#> [13] "4D" "8D" "JS" "QD" "10S" "7H" "6S" "2S" "9S" "7C" "AD" "AH"
#> [25] "3S" "JH" "10C" "3C" "KD" "4S" "4H" "10D" "AS" "AC" "10H" "8S"
#> [37] "JD" "6H" "8H" "3D" "5C" "KS" "KC" "2H" "8C" "QC" "2D" "QH"
#> [49] "JC" "7D" "6C" "3H"