Description Usage Arguments Value Warning Examples
View source: R/extract_subtypes.R
Take a card's type type line (stored in the type_line
)
column in the output from scry_cards
) and get just the subtypes
(everything after the '-')
1 | extract_subtypes(type_line, split = FALSE)
|
type_line |
card's type line. |
split |
If the card has multiple subtypes, should
|
list containing a character vector with the cards' subtypes
If you're using extract_subtypes
inside
[dplyr]mutate
, you'll need to pair it with
[purrr]map
.
1 2 | extract_subtypes("Creature - Merfolk Wizard")
extract_subtypes("Creature - Merfolk Wizard", split = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.