ods_dataset: Download a dataset

View source: R/ods_dataset.R

ods_datasetR Documentation

Download a dataset

Description

ods_dataset returns a dataset from statistics.gov.scot

Usage

ods_dataset(dataset, geography = NULL, ...)

Arguments

dataset

string. The identifying final part of a URI for a dataset on statistics.gov.scot.

geography

string. A valid SG geography code, or portion thereof.

...

Arbitrary filters requiring valid scheme = value structure.

Details

ods_dataset returns either a complete or filtered dataset from statistics.gov.scot. The dataset parameter must be passed a valid dataset name (a full list can be obtained by calling ods_all_datasets(). Other parameters can be used to filter the dataset.

Value

tibble. When invalid arguments are used returns NULL with warning (see ods_error_message).

Examples

ods_dataset("average-household-size")


jsphdms/scotgov documentation built on Feb. 2, 2024, 1:06 a.m.