Skip to contents

Given a list of pokémon types present on a player's team, calculate a measure of how resistant the team is to each type in the game.

Creates a list in which the names are each of the 18 types in the game, and the values are integers measuring the level of resistance the input team has to that type. Higher values indicate a higher level of resistance to that type (name).

Usage

calc_resistances(team_list)

Arguments

team_list

a list of Pokemon types.

Value

resistance_list a list of all Pokemon names and integers team has to that type as values.

Examples

calc_resistances(list(list("Electric"), list("Fire", "Flying")))
#> Error in calc_resistances(list(list("Electric"), list("Fire", "Flying"))): Input should be a list of character vectors of pokemon types.