cards: Deck of cards

Description Usage Format Examples

Description

All the cards in a standard deck.

Usage

1
data("cards")

Format

A data frame with 52 observations on the following 4 variables.

value

a factor with levels 10 2 3 4 5 6 7 8 9 A J K Q

color

a factor with levels black red

suit

a factor with levels Club Diamond Heart Spade

face

a logical vector

Examples

1
2
3
4
5
6
data(cards)
table(cards$value)
table(cards$color)
table(cards$suit)
table(cards$face)
table(cards$suit, cards$face)

JECheadle/RSOC317L documentation built on May 15, 2019, 4:02 a.m.