Get the triad name or number based on township name or code. Cook County is split into three sections called triads. These triads are assessed every three years. Each town lies entirely within a single triad.

town_get_triad(town, name = FALSE)

Arguments

town

Vector of township names or numeric codes. Township name must be title case to match correctly.

name

Default FALSE. Output triad name instead of triad number.

Value

Vector of triad numbers for the input townships. Returns NA for towns that cannot be found.

Examples


town_get_triad("Evanston")
#> [1] "2"

town_get_triad(c("Lyons", "10", "Worth"))
#> [1] "3" "2" "3"