This example:
df <- data.frame(
stringsAsFactors = FALSE,
SECUENCIAL = c(47638,47639,
47640,47641,47642,47643,47644,47645),
YEAR = c(2019, 2019, 2019, 2019, 2019, 2019, 2019, 2019),
MONTH = c(1, 1, 1, 2, 2, 2, 1, 1),
WEEKDAY = c(2, 4, 6, 1, 4, 4, 7, 4),
HOUR = c(10, 11, 22, 10, 17, 11, 8, 3),
COD_PROV = c(24, 24, 24, 24, 24, 24, 24, 24),
COD_MUN = c("24115", "24108","24115","24108","24115","24110","24110",
"24115"),
ZONE = c(1, 3, 3, 1, 1, 3, 3, 3))
I want to rename the number in the COD_MUN column to a name based one: 24115 -> PlaceOne , 24108 -> PlaceTwo or 24110 -> PlaceThree.
It is possible to do this with Rstudio? I've been trying with rownames, but I still don't have enough mastery over R to do it.
Thanks all.