Learn R Programming

onsr (version 1.0.2)

ons_search: Search for a Dataset

Description

Search for a Dataset

Usage

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

Value

A data.frame.

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.

Examples

Run this code
# \donttest{
ons_dim("cpih01")
ons_search("cpih01", name = "aggregate", query = "cpih1dim1A0")
# }

Run the code above in your browser using DataLab