Learn R Programming

poker (version 0.8.8)

dotTransformToNumber: dotTransformToNumber

Description

Determine the card from a rank and suit.

Usage

dotTransformToNumber(rank, suit)

Arguments

rank

:

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

:

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

Value

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

Examples

Run this code
# NOT RUN {
dotTransformToNumber(2,1)
dotTransformToNumber(14,1)
dotTransformToNumber(2,2)
dotTransformToNumber(14,2)
# }

Run the code above in your browser using DataLab