1. Dados Pokemón

Aqui vou importar a base de dados Pokemón:

load("C:/Users/isaft/OneDrive/Documentos/R/Base_de_dados-master/df_pokemon.RData")

2. Variáveis escolhidas: Tipo 1 e Grupo de ovos 2

df$type_1 <- as.factor(df$type_1)
df$egg_group_2 <- as.factor(df$egg_group_2)

3. Tabela cruzada

library(knitr)
tabela1 <- table(df$type_1, df$egg_group_2)
kable(tabela1)
bug dragon fairy flying ground humanshape indeterminate mineral plant water1 water2 water3
bug 2 0 0 0 0 2 0 2 2 0 0 0
dark 0 2 0 0 0 0 0 0 0 0 2 0
dragon 0 11 0 0 0 0 0 0 0 0 0 0
electric 0 2 4 0 3 0 0 0 0 0 0 0
fairy 0 0 4 0 0 0 0 0 0 0 0 0
fighting 0 0 0 0 0 5 0 0 0 0 0 0
fire 0 3 0 0 0 3 0 0 0 0 0 0
flying 0 0 0 0 0 0 0 0 0 0 0 0
ghost 0 0 0 0 0 0 4 0 0 0 0 0
grass 0 3 0 0 0 2 0 2 29 0 0 0
ground 0 0 0 0 3 0 1 0 0 0 0 0
ice 0 0 0 0 4 0 0 3 0 0 0 0
normal 0 1 2 0 6 3 1 0 0 0 0 0
poison 0 5 0 0 4 0 0 0 0 0 0 2
psychic 0 0 0 0 2 0 0 0 0 0 0 0
rock 0 2 0 0 0 0 0 1 0 0 0 6
steel 0 0 1 0 0 0 0 0 0 0 0 0
water 0 7 4 4 11 0 2 0 3 13 6 7

4. Análise: Alguns pontos interessantes

Podemos ver analisando a tabela:

5. Conclusão

Grupo de ovos Dragon reina!