Limpieza de la base de datos
library(readr)
eav2024 <- read_csv("eav.csv")
## Warning: One or more parsing issues, call `problems()` on your data frame for details,
## e.g.:
## dat <- vroom(...)
## problems(dat)
## Rows: 4942 Columns: 491
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (15): nom_mun_mv, nom_loc_mv, ageb_mv, colonia, rangos_edad, cp4_2_dumm...
## dbl (432): num_mun, mun_amm_y_periferia, sexo_num, genero_num, mza_mv, cp1, ...
## lgl (44): cp13_1, cp17_1_1, cp4_1_2, cp13_6, cp4_1_7, cp9_8, cp10_8, cp11_8...
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.