Read Subnational Region Code from Spectrum PJNZ

read_spectrum_region_code(pjnz)

Arguments

pjnz

file path to Spectrum PJNZ file.

Value

Spectrum subnational region code as an integer.

Details

The region code is 0 if a national Spectrum file.

Examples

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