Search for a Dataset

ons_search(id, edition = NULL, version = NULL, name = NULL, query = NULL)

Arguments

id

[character] Id that represents a dataset.

edition

[character] A subset of the dataset representing a specific time period. For some datasets this edition can contain all time periods (all historical data). The latest version of this is displayed by default.

version

[character] A specific instance of the edition at a point in time. New versions can be published as a result of corrections, revisions or new data becoming available.

name

[character]. The name of dimension to perform the query. Available dimensions for a specific id at ons_dim().

query

[character]. The query.

Value

A data.frame.

Examples

# \donttest{
ons_dim("cpih01")
#> [1] "aggregate" "geography" "time"     
ons_search("cpih01", name = "aggregate", query = "cpih1dim1A0")
#> NULL
# }