Learn R Programming

statsDK (version 0.1.1)

retrieve_tables: Retrieves an overview of the tables from Statistics Denmark

Description

The function retrieves a data frame with all the available tables from the Statistics Denmark API.

Usage

retrieve_tables(base_url = "http://api.statbank.dk/v1/")

Arguments

base_url

is the base url for the API you wish to call. Statistics Denmark can sometimes create custom API's that you can use by changing this parameter.

Value

a tibble

Details

id

The id of the table. This is used when calling specific tables later with retrieve_metadata or retrieve_data.

text

A description of what the data in the table is about.

unit

What unit the data is in.

updated

When the table was last updated

firstPeriod

The first period in the data, ie how far back the data goes.

latestPeriod

The latest period in the data.

active

If the table is still being updated

variables

A list of the variables in the tables.

Examples

Run this code
# NOT RUN {
tables <- statsDK::retrieve_tables()
dplyr::glimpse(tables)
# }

Run the code above in your browser using DataLab