Skip to contents

Query the enheter registry for entities whose overordnetEnhet matches the given org number. This traverses the ORGL parent-child hierarchy (e.g. Stortinget to Riksrevisjonen), which is distinct from the enhet-to-underenhet relationship.

Usage

brreg_children(org_nr, max_results = 200, type = c("code", "label"))

Arguments

org_nr

Character. 9-digit organization number of the parent entity (hovedenhet).

max_results

Integer. Maximum sub-units to return (default 200).

type

One of "code" (default) or "label".

Value

A tibble with one row per child entity. Same column schema as brreg_search() with registry = "enheter".

Examples

if (FALSE) { # interactive() && curl::has_internet()
brreg_children("971524960")
}