download_data: Download data from the eulaw.app database

Description Usage Arguments Value

View source: R/download_data.R

Description

This function downloads data via the eulaw.app API. You need to specify a database and a dataset that you want data from. You can use the parameters argument to filter the data using API parameters. If you leave this argument blank, the function will return the entire dataset. See the package vignette for an example of how to specify parameters. You can use the list_parameters() function to see a list of valid API parameters for each dataset and the list_parameter_values() function to see a list of valid values for each API paraemter.

Usage

1
download_data(database, dataset, parameters = NULL)

Arguments

database

The name of the database as a string. Use the function list_databases() to see a list of valid values.

dataset

The name of the dataset as a string. Use the function list_datasets() to see a list of valid values.

parameters

A named list that specifies a value for one or more valid API parameters. The default is NULL. Use the function list_parameters() to see a list of valid API parameters and the funciton list_parameter_values() to see a list of valid values for each API parameter. If this argument is set to NULL, the function will return the entire dataset.

Value

A tibble with as many columns as there are variables in the requested dataset.


jfjelstul/eulaw documentation built on Dec. 20, 2021, 11:07 p.m.