calc_weaknesses
calc_weaknesses.Rd
Given a list of pokémon types present on a player's team, calculate a measure of how weak the team is to each type in the game.
Creates a list in which the keys are each of the 18 types in the game, and the values are integers measuring the level of weakness the input team has to that key (type). Higher values indicate a higher level of weakness to that type.
Arguments
- team_list
: list of list of strings list of pokémon types associated to the user's team obtained via
get_types