View source: R/simpleregions.R
simpleregions | R Documentation |
Tidy English PHEC names for consistency of formatting
simpleregions(x)
x |
vector with English PHEC region names |
Returns x formatted to English PHEC names from ONS.
# data = data.frame(regions =c("UNKNOWN", "YORKSHIRE AND THE HuMBER", "East Of England"),
# id = c(1,2,3))
# region_names = data.frame(regions = unique(data$regions))
# region_names$regions_clean = simpleregions(region_names$regions)
# data <- merge(data, region_names, by = "regions", all = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.