Skip to contents

Method for c() that combines one or more card vectors into a single vector.

Usage

# S3 method for class 'card'
c(...)

Arguments

...

One or more objects of class "card".

Value

A combined card vector.

Examples

hand1 <- card(c("A", "10"), c("♠", "♦"))
hand2 <- card(c("Q"), c("♥"))
c(hand1, hand2)
#> <card[3]>
#> [1] A♠  10♦ Q♥