Learn R Programming

poker (version 0.8.8)

dotTransformToRank: dotTransformToRank

Description

Determine the rank of a card.

Usage

dotTransformToRank(y)

Arguments

y

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

Value

rank: rank of card y as integer in {2, ... , 14}
2 = deuce
.
.
.
11 = jack
12 = queen
13 = king

Examples

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

Run the code above in your browser using DataLab