Learn R Programming

arealDB (version 0.3.9)

matchUnits: Determine the administrative hierarchy ID

Description

This function matches territorial units with a list of known units to derive the administrative hierarchy ID.

Usage

matchUnits(input = NULL, source = NULL, verbose = FALSE)

Arguments

input

[data.frame(1)] table in which to match administrative units.

source

[integerish(1)] the geometry ID (geoID) from which the terms have been taken.

verbose

[logical(1)] be verbose about what is happening (default FALSE).

Value

The table provided in input, where the given columns are replaced by the column ahID, which contains the administrative hierarchy ID.

Details

names(input) must contain at least the al1 = ... to match at least a certain nation. Further administrative levels are denoted by column names al2, al3, ...