I try to solve the accent problem with this script:
Mapa@data$NAME_2 <- Mapa@data$NAME_2 %>%
as.character() %>%
stri_trans_general("Latin-ASCII") %>%
toupper()
But when I open the column NAME_2
, the name of the municipalities is, for example:
MACEIA³ instead of MACEIÓ or MACEIO.
Mapa@data$NAME_2
is a column with the name of the municipalities of Brazil.