Read Subnational Region Name from Spectrum PJNZ

read_spectrum_region_name(pjnz)

Arguments

pjnz

file path to Spectrum PJNZ file.

Value

Spectrum subnational region name as a string. Returns NA if no subnational region.

Details

Value NA corresponds to region code 0 for a national Spectrum file.

Examples

pjnz <- system.file("extdata/demo_mwi2019.PJNZ", package = "naomi")
read_spectrum_region_name(pjnz)
#> [1] NA