Learn R Programming

poker (version 0.8.8)

dotPairRanker: dotPairRanker

Description

Determine the rank of the pair. Notes: dotPairRanker requires a hand with a score of 2 (i.e., a pair). This functions works best when ranks are sorted in decreasing order.

Usage

dotPairRanker(oneHand)

Arguments

oneHand

:

a sorted hand with ranks only as vector[7]
col1: rank of card 1 in {2, ... , 14}
col2: rank of card 2
.
.
.

Value

pairRank : the rank of the pair as vector

Examples

Run this code
# NOT RUN {
dotPairRanker(c(2,2,5,6,7,13,14))
# }

Run the code above in your browser using DataLab