README.md

PokemonAnalyse

The goal of PokemonAnalyse is to make analysing the “Pokemon” dataset easier

Installation

You can install the development version of PokemonAnalyse from GitHub with:

# install.packages("devtools")
devtools::install_github("PedroDeBos/PokemonAnalyse", build_vignettes = TRUE)

Functions

This package includes 4 functions, which will all be shown including examples below. Important is that all functions rely on the pokemon’s name being spelled with a capital letter

pokemon_legendary: States whether the selected pokemon is legendary or not

library(PokemonAnalyse)
pokemon_legendary("Mewtwo")
#> [1] "Mewtwo is a legendary pokemon"
pokemon_legendary("Charizard")
#> [1] "Charizard is not a legendary pokemon"

pokemon_type: States the type(s) of the selected pokemon

pokemon_type("Groudon")
#> $Groudon
#> [1] "Groudon is a ground type"
pokemon_type("Gengar")
#> $Gengar
#> [1] "Gengar is a ghost and a poison type"

pokemon_stats: Gives a graph of the selected pokemon’s stats

pokemon_stats("Alakazam")

pokemon_weakness: Gives a graph of the selected pokemon’s weakness’

pokemon_weakness("Aggron")

Credits

Pokemon database was taken from Rounak Banik’s kaggle.com under the CC0 license

Functions were written by Pedro de Bos



PedroDeBos/PokemonAnalyse documentation built on June 12, 2022, 1:48 a.m.