Description Usage Arguments Value Note Warning See Also Examples
Given a card's color (or color identity), return the Ravinca
guild assoicated with the card. By default, label_guild
requires the
card to be both of the guild's colors, but if inclusive = TRUE
,
mono-color cards are labeled with all guilds they could belong to.
1 | label_guild(color_code, inclusive = FALSE, convert_to_list = FALSE)
|
color_code |
vector of characters of the card's color/color identity,
using WUBRG notation. Letters must be capital and in alphabetic order. If
using with |
inclusive |
if |
convert_to_list |
Should |
a vector of strings with all guild(s) matching the color_code
cards with hybrid costs are treated as belonging to both colors, as though they were gold cards.
If you're using label_guild
inside
[dplyr]mutate
, you'll need to pair it with
[purrr]map
. Seevingette("using_label_functions")
.
1 2 3 | label_guild(c("U", "W"))
label_guild("U")
label_guild("U", inclusive = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.