View source: R/clean_comunas.R
clean_comunas | R Documentation |
Fix accents and weird characters in municipalities and gets them in proper format. Also converts some municipality names that can be spelled differently to a standard format.
clean_comunas(dfName, varName)
dfName |
A dataframe containing a variable with municipalities |
varName |
A variable containing municipalities, in quotation marks. |
A character vector.
df <- data.frame(comunas=c("ñuñoa", "Peñalolén", "PEñaflor", "Las condes"))
clean_comunas(df, "comunas")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.