Skip to contents

Normalizes application vocabulary into a package-neutral edge table. The package understands levels and stable identifiers; terms such as county, parish, municipality, or district remain data values rather than hard-coded assumptions.

Usage

d_relationships(
  data = NULL,
  parent_level = NULL,
  parent_id = NULL,
  child_level = NULL,
  child_id = NULL
)

Arguments

data

Data frame containing parent and child identifiers. Pass NULL to create an empty relationship table. A previously normalized table can be revalidated without the remaining arguments.

parent_level, child_level

Single level labels.

parent_id, child_id

Column names in data containing stable IDs.

Value

A dragmapr_relationships data frame with parent_level, parent_id, child_level, and child_id.