Field dictionary: Norwegian API paths to English column names
Source:R/tidybrreg-package.R
field_dict.RdA tibble mapping brreg JSON field paths to English column names and R types. Used internally by the parse engine. API fields absent from this dictionary pass through with auto-generated snake_case names rather than being silently dropped.
Format
A tibble with 103 rows and 3 columns:
- api_path
Dot-notation path in the brreg JSON response (e.g.
"organisasjonsnummer","forretningsadresse.kommune").- col_name
English column name used in package output (e.g.
"org_nr","municipality").- type
R type for coercion:
"character","Date","integer","numeric", or"logical".
See also
brreg_entity() for the function that uses this dictionary.
Other tidybrreg reference data:
annotation_infotypes,
legal_forms,
role_groups,
role_types
Examples
field_dict
#> # A tibble: 103 × 3
#> api_path col_name type
#> <chr> <chr> <chr>
#> 1 organisasjonsnummer org_nr character
#> 2 navn name character
#> 3 organisasjonsform.kode legal_form character
#> 4 organisasjonsform.beskrivelse legal_form_desc character
#> 5 stiftelsesdato founding_date Date
#> 6 registreringsdatoEnhetsregisteret registration_date Date
#> 7 antallAnsatte employees integer
#> 8 harRegistrertAntallAnsatte employees_reported logical
#> 9 hjemmeside website character
#> 10 naeringskode1.kode nace_1 character
#> # ℹ 93 more rows
field_dict[field_dict$type == "Date", ]
#> # A tibble: 28 × 3
#> api_path col_name type
#> <chr> <chr> <chr>
#> 1 stiftelsesdato founding_date Date
#> 2 registreringsdatoEnhetsregisteret registration_date Date
#> 3 konkursdato bankruptcy_date Date
#> 4 underAvviklingDato liquidation_date Date
#> 5 tvangsavvikletPgaManglendeSlettingDato forced_dissolution… Date
#> 6 tvangsopplostPgaMangelfulltStyreDato forced_dissolution… Date
#> 7 tvangsopplostPgaManglendeRegnskapDato forced_dissolution… Date
#> 8 tvangsopplostPgaManglendeRevisorDato forced_dissolution… Date
#> 9 registreringsdatoMerverdiavgiftsregisteret vat_registration_d… Date
#> 10 registreringsdatoFrivilligMerverdiavgiftsregisteret voluntary_vat_reg_… Date
#> # ℹ 18 more rows