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