View source: R/code_regiones.R
code_regiones | R Documentation |
This function matches municipalities by name to their corresponding region
code_regiones(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_df <- clean_comunas(df, "comunas")
clean_df_regiones <- code_regiones(clean_df, "comunas")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.