get_dataset_data {hlidacr}R Documentation

Get data from the dataset

Description

Get data from the dataset

Usage

get_dataset_data(
  dataset_id,
  token = Sys.getenv("HLIDAC_TOKEN"),
  query = NULL,
  page = 1,
  sort = NULL,
  desc = NULL
)

Arguments

dataset_id

ID of dataset

token

Authorization token

query

Search query

page

Number of page (Please note that if the page parameter exceeds 200, the function returns error)

sort

Sort by column

desc

Descending or ascending sorting

Value

list containing 3 elements: - total: Total number of datasets available (integer) - page: Page of the result (integer), equal to the 'page' argument of the function - results: Data.frame with data, columns vary depending on the dataset

See Also

https://www.hlidacstatu.cz/swagger/index.html

https://www.hlidacstatu.cz/api/v1/doc

Other Datasets: get_dataset_metadata(), get_dataset_record_detail(), get_datasets()

Examples

## Not run: 
get_dataset_data("ministri")
get_dataset_data("ministri", query = "Zeman", page = 1)

## End(Not run)

[Package hlidacr version 0.2.0 Index]