playing_cards | R Documentation |
A table describing each of the 52 cards in a deck.
playing_cards
A data frame with 52 observations on the following 2 variables.
The number or card type.
Card suit, which takes one of four values: Club
, Diamond
, Heart
, or Spade
.
Whether the card counts as a face card.
This extremely complex dataset was generated from scratch.
playing_cards <- data.frame(
number = rep(c(2:10, "J", "Q", "K", "A"), 4),
suit = rep(c("Spade", "Diamond", "Club", "Heart"), rep(13, 4))
)
playing_cards$face_card <-
ifelse(playing_cards$number %in% c(2:10, "A"), "no", "yes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.