ods_dataset
returns a dataset from statistics.gov.scot
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.- labelled
logical
. To indicate whether to include `refAreaLabelled` column.- ...
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.
Examples
ods_dataset("average-household-size")
#> # A tibble: 693 × 4
#> refArea refPeriod measureType value
#> <chr> <dbl> <chr> <dbl>
#> 1 S12000011 2004 ratio 2.49
#> 2 S12000010 2004 ratio 2.31
#> 3 S12000014 2004 ratio 2.24
#> 4 S12000008 2004 ratio 2.31
#> 5 S12000045 2004 ratio 2.48
#> 6 S12000019 2004 ratio 2.4
#> 7 S12000020 2004 ratio 2.35
#> 8 S12000017 2004 ratio 2.27
#> 9 S12000018 2004 ratio 2.21
#> 10 S12000041 2004 ratio 2.24
#> # ℹ 683 more rows