Skip to contents

Returns a data frame mapping historical district names to their current canonical names (as of 2025). NM PED districts have changed names over the years, creating apparent appearances/disappearances in time series. This mapping allows consistent district identification across years.

Usage

get_district_name_map()

Value

Data frame with columns: district_code, old_name, canonical_name

Details

The canonical name is the most recent name used by NM PED (2024-25 data). All mappings are keyed by district_code to ensure accuracy.

Examples

# View all district name changes
name_map <- get_district_name_map()
head(name_map)
#>   district_code           old_name canonical_name
#> 1           016          FT SUMNER    FORT SUMNER
#> 2           018              HATCH   HATCH VALLEY
#> 3           024        COBRE CONS.          COBRE
#> 4           024 COBRE CONSOLIDATED          COBRE
#> 5           039              HONDO   HONDO VALLEY
#> 6           053              CHAMA   CHAMA VALLEY

# Find the canonical name for "CENTRAL CONS."
name_map[name_map$old_name == "CENTRAL CONS.", ]
#>   district_code      old_name canonical_name
#> 8           067 CENTRAL CONS.        CENTRAL