np_rows: Make h_table no-parent rows

Description Usage Arguments Value

View source: R/hierarchy-helpers.R

Description

The no-parent rows are the parents of all regions that themselves have no parent regions. These are identified as the rows who's parent_region_id does not appear in the 'id' column. They are added so that all parts of the hierarchy terminate at a well-defined "parent_region_level" regardless of the depth of the hierarchy.

Usage

1

Arguments

table

h_table to check for no-parent codes.

Value

data frame rows for all no-parent rows (with ZERO as parent).


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