Assign areas
Usage
assign_areas(
major_stat_area_description,
area_regex = c("3[CD]+", "5[AB]+", "5[CDE]+")
)
Examples
x <- c(
"5D: NORTHERN HECATE STRAIT", "3C: S.W. VANCOUVER ISLAND",
"3D: N.W. VANCOUVER ISLAND"
)
assign_areas(x)
#> [1] "5CDE" "3CD" "3CD"