Description Usage Arguments Details Examples
View source: R/clean_neighbourhood_names.R
Clean up City of Toronto neighbourhood names to a standardized format and remove neighbourhood numbers, matching what's in the neighbourhoods data set.
1 | clean_neighbourhood_names(neighbourhood)
|
neighbourhood |
Name of neighbourhood column to be cleaned |
If there are any cleaning errors and the names cannot all be matched to that format (meaning additional cleaning is required), the function produces a warning with the mismatched neighbourhood names, and returns the matching names cleaned, and the mismatching names in their original form.
1 2 3 4 5 6 | {
library(dplyr)
tibble(neighbourhood = c("Casa Loma (96)", "Milliken (130)")) %>%
mutate(neighbourhood = clean_neighbourhood_names(neighbourhood))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.