retrieve_tables: Retrieves an overview of the tables from Statistics Denmark

Description Usage Arguments Details Value Examples

Description

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

Usage

1
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.

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.

Value

a tibble

Examples

1
2
tables <- statsDK::retrieve_tables()
dplyr::glimpse(tables)

statsDK documentation built on May 2, 2019, 4:19 a.m.