View source: R/statswales_create_query.R
| statswales_create_query | R Documentation |
Submits a set of filters and display options to the API and returns the resulting filter ID. The same inputs always produce the same ID, so this is useful for building shareable, reproducible data requests.
statswales_create_query(
dataset_id,
filter = NULL,
options = list(use_raw_column_names = FALSE, use_reference_values = FALSE,
data_value_type = "formatted")
)
dataset_id |
A dataset UUID string. Use |
filter |
Filter criteria in the same format as |
options |
Display options in the same format as |
Pass the returned filter_id to statswales_get_query() to inspect the
query configuration, or use it directly in statswales_get_dataset() /
statswales_download_dataset() workflows.
A character string containing the 12-character filter ID, or NULL
if the request fails.
## Not run:
datasets <- statswales_list_datasets()
id <- datasets$id[1]
fid <- statswales_create_query(id)
statswales_get_query(id, fid)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.