Skip to contents

Customizes the print output for card_vector objects by enclosing each card in brackets.

Usage

# S3 method for class 'card_vector'
format(x, ...)

Arguments

x

A card_vector object.

...

Additional arguments passed to format().

Value

A formatted character string representing the card vector.

Examples

# Format the card vector
deck <- card_vector(c("A♠", "10♣", "K♥"))
format(deck)
#> [1] "[A♠]"  "[10♣]" "[K♥]"