recommend
recommend.Rd
Given a team of up to 5 pokémon, recommend a pokémon that could be added to the current team to make its weaknesses and resistances more balanced.
This function first determines which types the
team is most weak to and which types the team is
most resistant to via calc_resistances
and
calc_weaknesses
, and then makes its recommendation
based on this information.
Value
recommendation: string the name of a pokémon that could be added to the input team to make its weaknesses and resistances more balanced.
Examples
recommend(list('Pikachu', 'Eevee', 'Charizard'))
#> [1] "Iteration number 1 of 692."
#> [1] "Iteration number 100 of 692."
#> [1] "Iteration number 200 of 692."
#> [1] "Iteration number 300 of 692."
#> [1] "Iteration number 400 of 692."
#> [1] "Iteration number 500 of 692."
#> [1] "Iteration number 600 of 692."
#> [1] "Aegislash"