Learn R Programming

mosaic (version 0.4-1)

Cards: Standard Deck of Cards

Description

A character vector with two or three character representations of each card in a standard 52-card deck.

Arguments

Details

The 2 of clubs is represented as "2C", while the 10 of diamonds is "10D".

Examples

Run this code
deal(Cards, 13)        # bridge hand
deal(Cards, 5)         # poker hand
shuffle(Cards)         # shuffled deck

Run the code above in your browser using DataLab