Learn R Programming

poker (version 0.8.8)

dotTransformToSuit: dotTransformToSuit

Description

Determine the suit of a card.

Usage

dotTransformToSuit(y)

Arguments

y

number corresponding to card as integer in {1, 2, ... , 52}

Value

suit: suit of card y as integer in {1, 2, 3, 4}
1 = spade
2 = club
3 = heart

Examples

Run this code
# NOT RUN {
dotTransformToSuit(1)
dotTransformToSuit(13)
dotTransformToSuit(14)
dotTransformToSuit(26)
# }

Run the code above in your browser using DataLab