Skip to contents

Returns a data frame with the full panel of each years' valid administrative identifiers for the chosen unit-type and time-period.

The function calls the API of Statistics Norway (SSB) and returns the pre-processed information.

Usage

status_quo(type , from  , to )

Arguments

type

A string: "kommune", "grunnkrets" or "fylket"

from

An integer: Start year of panel

to

An integer: End year of panel

Value

A 'data.frame' object, with four columns geoID, name, from, to

  • geoID - current numeric identifier

  • name - current name of adm. unit

  • from - startYear of validity (always year on year)

  • to - endYear

Examples

expl <- status_quo(type = "kommune", from = 1999, to = 2018)