wubrg_order: Convert MTG color names into ordered factor

Description Usage Arguments Value See Also Examples

View source: R/wubrg_order.R

Description

Turn the outputs of relabel_mtg_color into an ordered factor (WUBRG order, then "Multicolored", followed by "Colorless"). Converting strings into ordered factors is useful for having plot outputs display in a useful order.

Usage

1
wubrg_order(label_chr)

Arguments

label_chr

vector of characters that can contain the values "White", "Blue", "Black", "Red", "Green", "Multicolored", or "Colorless". The main source is relabel_mtg_color.

Value

vector of ordered factors with the same length and labels as label_chr

See Also

relabel_mtg_color for the main source of inputs to this function

Examples

1
wubrg_order(c("Blue", "Green", "Black"))

khailper/scryr documentation built on Aug. 1, 2019, 9:35 p.m.