ssb: Data from Statics Norway (SSB) Statbank database

Description Usage Arguments Value Author(s) Examples

Description

Downloads the requested data by using Statistics Norway's API, parses the resulting JSON file, and returns it as a data frame.

Usage

1
ssb(id, lang = "en")

Arguments

id

Data set ID. See the ssb_search() function.

lang

Language of data set to return. Can be "en" for english or "no" for norwegian.

Value

Data frame with SSB data

Author(s)

Mikael Poul Johannesson mikael.johannesson@uib.no

Examples

1
2
3
4
5
6
7
## View data sets related to population
View(ssb_search("population"))

## Download population by municipalities from 1986 to last year
data <- ssb(26975)
str(data)
View(data)

mikaelpoul/ssbR documentation built on May 22, 2019, 10:51 p.m.