Function sources data sets available at https://statistics.gov.scot/.

get_available_datasets(pattern)

Arguments

pattern

A optional pattern to match data set name.

...

Other options passed to grepl

Value

A data frame with data set names and URIs.

Details

The functions executes simple SPARQL query to source distinct values for the objects of rdf:type defines as <http://publishmydata.com/def/dataset#Dataset>. The sourced values can be used in function get_geography_data and other functions to filter the query results to a specific data set.

Examples

# NOT RUN {
get_available_datasets(pattern = "health")
# }