Skip to contents

Returns a character vector of sorted cards, collapsed by default.

Usage

print_hand_df(h, collapse = TRUE)

Arguments

h

a data.frame of 5 cards.

collapse

if TRUE, collapse the character vector.

Value

character vector of sorted cards.

Examples

deck <- new_deck_df()
(hand <- deal_hand_df(deck))
#>    rank suit
#> 51    K    S
#> 46    8    S
#> 1     2    C
#> 25    K    D
#> 47    9    S
print_hand_df(hand)
#> [1] "2C 8S 9S KS KD"