dotPairRanker: dotPairRanker

Description Usage Arguments Value Examples

View source: R/poker.R

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

1
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
.
.
.
col7: rank of card 7

Value

pairRank : the rank of the pair as vector

Examples

1
dotPairRanker(c(2,2,5,6,7,13,14))

poker documentation built on Aug. 9, 2017, 9:03 a.m.

Related to dotPairRanker in poker...