Package: tidybrreg 0.4.0

Sondre Skarsten

tidybrreg: Tidy Access to Norway's Business Registry ('Enhetsregisteret')

A tidy interface to download, search, and analyze data from the Norwegian Central Coordinating Register for Legal Entities (Enhetsregisteret), maintained by the Brønnøysund Register Centre. Provides access to registration data for approximately 1 million legal entities including companies, partnerships, sole proprietorships, associations, and government bodies. Returns tibbles with English column names mapped via a data-driven dictionary; unknown API fields pass through with auto-generated names. Coded values (legal forms, industry codes, roles) can be translated to English on demand using bundled reference data or live lookups from the SSB Klass API. Data is freely available under the Norwegian Licence for Open Government Data (NLOD 2.0).

Authors:Sondre Skarsten [aut, cre]

tidybrreg_0.4.0.tar.gz
tidybrreg_0.4.0.zip(r-4.7)tidybrreg_0.4.0.zip(r-4.6)tidybrreg_0.4.0.zip(r-4.5)
tidybrreg_0.4.0.tgz(r-4.6-any)tidybrreg_0.4.0.tgz(r-4.5-any)
tidybrreg_0.4.0.tar.gz(r-4.7-any)tidybrreg_0.4.0.tar.gz(r-4.6-any)
tidybrreg_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
tidybrreg/json (API)

# Install 'tidybrreg' in R:
install.packages('tidybrreg', repos = c('https://sondreskarsten.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sondreskarsten/tidybrreg/issues

Pkgdown/docs site:https://sondreskarsten.github.io

Datasets:
  • annotation_infotypes - Annotation infotype codes with English descriptions
  • field_dict - Field dictionary: Norwegian API paths to English column names
  • legal_forms - Norwegian legal form codes with English translations
  • role_groups - Role group codes with English translations
  • role_types - Role type codes with English translations

On CRAN:

Conda:

api-wrapperbrregbusiness-registryenhetsregisteretnorwayopen-datatidyverse

4.26 score 10 scripts 41 exports 32 dependencies

Last updated from:63d929972c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK213
source / vignettesOK221
linux-release-x86_64OK181
macos-release-arm64OK144
macos-oldrel-arm64OK178
windows-develOK128
windows-releaseOK405
windows-oldrelOK401
wasm-releaseOK162

Exports:as_brreg_tsibblebrreg_annotation_summarybrreg_annotationsbrreg_board_networkbrreg_board_summarybrreg_change_summarybrreg_changesbrreg_childrenbrreg_cleanupbrreg_data_dirbrreg_downloadbrreg_entitybrreg_eventsbrreg_flowsbrreg_harmonize_kommunebrreg_harmonize_nacebrreg_importbrreg_labelbrreg_manifestbrreg_networkbrreg_openbrreg_panelbrreg_prokurabrreg_replaybrreg_rolesbrreg_roles_legalbrreg_searchbrreg_seriesbrreg_signaturbrreg_snapshotbrreg_snapshotsbrreg_statusbrreg_survival_databrreg_syncbrreg_sync_statusbrreg_underenheterbrreg_update_fieldsbrreg_updatesbrreg_validatediff_roller_stateget_brreg_dic

Dependencies:askpassbitbit64clicliprcpp11crayoncurldplyrgenericsgluehmshttr2jsonlitelifecyclemagrittropensslpillarpkgconfigprettyunitsprogressR6readrrlangsystibbletidyselecttzdbutf8vctrsvroomwithr

Tracking board and role changes
Roller data: two types of role holder | Fetching roles | Board summary | Detecting changes with diff_roller_state() | Automated sync | Bulk method (default) | CDC method (per-org fallback) | Querying the changelog | Example: monitoring board turnover | Schema evolution

Last update: 2026-03-25
Started: 2026-03-25

Getting started with tidybrreg
Installation | Look up a single entity | Translate codes to labels | Search for entities | Sub-entities (establishments) | Retrieve roles | Bulk download the full register | Function → API endpoint mapping | Next steps

Last update: 2026-03-17
Started: 2026-03-17

Building firm panels and time series
Accumulating snapshots | Importing historical downloads | Building panels from snapshots | Custom date targets | Entry and exit coding | Detecting changes between snapshots | CDC replay: single snapshot + updates | CDC limitations | Bridging snapshots to CDC | Aggregate time series | tsibble conversion | Managing the snapshot store

Last update: 2026-03-17
Started: 2026-03-17

Corporate governance research
Board composition | Person identification | Reverse role lookup | Director interlock networks | Pre-fetched role data | Firm survival analysis | Bulk role snapshots for panel analysis

Last update: 2026-03-17
Started: 2026-03-17

Norwegian business entity data
Organization numbers | Three registries, one API | Legal forms | NACE industry codes | Employee counts | Addresses | Municipality codes and the 2020 reform | Dates | CSV vs JSON bulk downloads | CDC update stream | Data update schedule | Data license

Last update: 2026-03-17
Started: 2026-03-17

Package architecture
Data flow overview | Key design decisions

Last update: 2026-03-17
Started: 2026-03-17

Readme and manuals

Help Manual

Help pageTopics
Annotation infotype codes with English descriptionsannotation_infotypes
Convert tidybrreg output to tsibbleas_brreg_tsibble
Count entities with active annotationsbrreg_annotation_summary
Retrieve registry annotations (påtegninger) for entitiesbrreg_annotations
Build a director interlock networkbrreg_board_network
Derive board-level summary covariates from role databrreg_board_summary
Summarize changes by field and typebrreg_change_summary
Query the change log for field-level mutationsbrreg_changes
Get child entities in the organisational hierarchybrreg_children
Remove old snapshots from the local storebrreg_cleanup
Path to the tidybrreg snapshot storebrreg_data_dir
Download the full Norwegian business registerbrreg_download
Look up a Norwegian legal entitybrreg_entity
Detect changes between two snapshotsbrreg_events
Compute daily entry and exit flowsbrreg_flows
Harmonize municipality codes across boundary reformsbrreg_harmonize_kommune
Harmonize NACE industry codes across classification revisionsbrreg_harmonize_nace
Import a historical CSV as a snapshot partitionbrreg_import
Translate codes to human-readable English labelsbrreg_label
Read the snapshot manifestbrreg_manifest
Build an entity network graphbrreg_network
Open the snapshot store as a lazy Arrow Datasetbrreg_open
Construct a firm-period panel from accumulated snapshotsbrreg_panel
Retrieve procuration authority (prokura)brreg_prokura
Reconstruct register state by replaying CDC updatesbrreg_replay
Retrieve board members, officers, and auditorsbrreg_roles
Retrieve roles an entity holds in other entitiesbrreg_roles_legal
Search Norwegian legal entitiesbrreg_search
Compute aggregate time series from snapshotsbrreg_series
Retrieve signature authority (signaturrett)brreg_signatur
Save a dated snapshot of the full registerbrreg_snapshot
List available snapshotsbrreg_snapshots
Check availability of local bulk datasetsbrreg_status
Prepare firm survival databrreg_survival_data
Synchronize local state with the brreg CDC streambrreg_sync
Display sync statusbrreg_sync_status
Get all sub-units (underenheter) belonging to an entitybrreg_underenheter
Retrieve field-level CDC changes as a flat tibblebrreg_update_fields
Retrieve incremental entity updatesbrreg_updates
Validate Norwegian organization numbersbrreg_validate
Compute field-level diffs between two roller state tibblesdiff_roller_state
Field dictionary: Norwegian API paths to English column namesfield_dict
Fetch a brreg dictionaryget_brreg_dic
Norwegian legal form codes with English translationslegal_forms
Role group codes with English translationsrole_groups
Role type codes with English translationsrole_types