View source: R/clean_pcon_names.R
clean_pcon_names | R Documentation |
British parliamentary constituencies are not often coded in a consistent manner. Fixing this can also be very time-consuming. This function uses the constituencies dataset in the package to standardise a vector of constituencies names. Note that where strings are uncertain this function can take a while to run.
clean_pcon_names(x, year = NULL)
x |
A vector of constituency names. |
year |
A specific year to consider names for. Defaults to NULL. |
A vector of cleaned constituency names.
clean_pcon_names(c("Ynys Môn", "Derby North", "North, Derby"), year = 2019)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.