load_spatial_relationship: Load relationship file

Description Usage Arguments Details Value

View source: R/hierarchy-helpers.R

Description

The relationship file lists each region code, level, its parent region code, and the parent region level along with the date when the region enters existence and when the region ceases existence. This is a way of representing a hierarchy of groups that does not require all parts of the hierarchy to have the same number of levels.

Usage

1

Arguments

file

path to .csv file describing a spatial relationship

Details

When the talbe is loaded we create a unique id that is the combination of the parent_region_code and the parent_region_level so that the region_code field is not required to be unique.

Value

table describing the spatial relationship


sakrejda/hierarchy documentation built on Aug. 23, 2019, 7:15 p.m.