Skip to contents

Given a list of pokémon names, determine the types of those pokémon using an existing dataset.

Creates a list with pokemon types by matching the pokemon names to the names in a dataset and getting the corresponding type(s) of the pokemon. The pokemon names are cleaned before looking for a match.

Usage

get_types(pokemon_names)

Arguments

pokemon_names

a list of pokemon names that are on the users team

Value

pokemon_types a list of strings of pokémon types corresponding to the pokémon names in the input list

Examples

get_types(list('Pikachu', 'Eevee', 'Charizard', ...))
#> Error in get_types(list("Pikachu", "Eevee", "Charizard", ...)): '...' used in an incorrect context