hdng_get_data: Extract the data from the HDNG Database

Description Usage Arguments Value Examples

View source: R/hdng_get_data.R

Description

This function is used to extract variables indicated by the user from the database. The user can specify which municipalities (gemeenten), and the possible years to look for.

Usage

1
2
3
4
5
6
7
8
hdng_get_data(
  variables,
  gemeenten,
  from = 1000,
  to = 2000,
  clean = TRUE,
  col.names = FALSE
)

Arguments

variables

Your query.

gemeenten

The municipalities you want to extract the data for (defaults to all)

from

Begin year (to be used in conjunction with to)

to

End year (to be used in conjunction with from)

clean

Filters the dataset to variables which are available at least once

col.names

Gives you the description rather than the variable code as colnames.

Value

a data.frame of all queried municipalities and variables

Examples

1
2
hdng_get_data(c("aaa1", "bcx1", "qbx1"), gemeenten = c("Amsterdam", "Eindhoven"), from = 1800, to = 1900)
hdng_get_data("lpkm", from = 1900, to = 1950, clean = FALSE)

basm92/hdng documentation built on July 23, 2020, 12:43 a.m.