View source: R/convert_deck_names.r
standardise_deck_name | R Documentation |
Standardise recorded deck names, using any given nicknames
standardise_deck_name( names, starters = starters, nicknames = data.table(name = character(), nickname = character()), return_nicknames = TRUE )
names |
a character vector, containing deck names or nicknames. |
starters |
a data.table, containing columns for spec names and their associated starter colour. |
nicknames |
an optional data.table, containing standardised deck names and their associated nicknames. This is used to convert given nicknames to their deck names. |
return_nicknames |
if TRUE, returns a deck's nickname instead of its
name if there is one in |
a character vector of the same length as name
, containing
standardised versions of the deck names, or their nicknames when there is
one.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.